Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc issue on M2 mac with #3852 #3861

Closed
4 tasks done
AndyMik90 opened this issue Apr 25, 2024 · 5 comments
Closed
4 tasks done

grpc issue on M2 mac with #3852 #3861

AndyMik90 opened this issue Apr 25, 2024 · 5 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@AndyMik90
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.5

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

With 0.6.5 and #3852 my M2 mac is throwing grpc error (grpc/_cython/cygrpc.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_CFDataGetBytes')

Installing grpcio 1.62.2 fixes that issue, but is not compatible with pymilvus 2.3.1 (requires grpcio<=1.58.0,>=1.49.1)

Do you have any suggestions other than not coding on my Mac? 🥇

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented Apr 25, 2024

The issue you're encountering with grpc on your M2 Mac, when using Dify version 0.6.5 alongside grpcio 1.62.2 and pymilvus 2.3.1, seems to stem from a compatibility problem between these specific versions. The grpc error you've described is indicative of a missing symbol, likely due to the grpcio version not fully supporting the M2 architecture or conflicting with other dependencies.

Given pymilvus 2.3.1's requirement for grpcio to be within the range >=1.49.1, <=1.58.0, upgrading to grpcio 1.62.2 as a workaround for the M2 compatibility issue introduces a new problem: it falls outside the compatible range required by pymilvus, leading to further compatibility issues.

Unfortunately, without a direct fix or workaround available in the repositories for this specific grpc issue on M2 Macs, and considering the constraints around grpcio's version compatibility with pymilvus, the situation is indeed challenging.

To better assist, could you provide additional details about your setup, including the Python version, operating system version, and any other relevant dependencies? This information could help in identifying potential workarounds or alternative solutions. Additionally, sharing the exact steps you've taken to configure your environment, as well as the full error message or stack trace, could offer more insights into the issue, potentially leading to a more targeted solution.

Details

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Apr 25, 2024
@Eddie-Fannie
Copy link

hello, do you have a solution?

@linshushu
Copy link

temporary solution:
pymilvus==2.4.0
grpcio==1.60.0

@crazywoola
Copy link
Member

@takatost It seems some deps are outdated in recent versions. #3795

@ifsheldon
Copy link

I encountered this when trying to develop based on dify 0.6.8. The comment here worked for me.

@langgenius langgenius locked and limited conversation to collaborators May 28, 2024
@crazywoola crazywoola converted this issue into discussion #4722 May 28, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants