chatgpt-retrieval-plugin icon indicating copy to clipboard operation
chatgpt-retrieval-plugin copied to clipboard

Apple M1 - Can't install grpcio

Open blasscoc opened this issue 1 year ago • 2 comments

We need to be able to support grpcio 1.53.0 for Apple Silicon. However Poetry is not doing this for this project.

This is the error; install the app: .... Note: This error originates from the build backend, and is likely not a problem with poetry but with grpcio (1.47.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "grpcio (==1.47.5)"'.

Poetry is resolving grpcio 1.47.5 because of pymilvus and can't be coerced into using 1.53.0.

Because pymilvus (2.2.4) depends on grpcio (>=1.47.0,<=1.48.0) and chatgpt-retrieval-plugin depends on grpcio (1.53.0), pymilvus is forbidden. So, because chatgpt-retrieval-plugin depends on pymilvus (2.2.4), version solving failed.

Pymilvus should be on grpcio 1.53.0 in it's 2.2.4 release, at least according to their github, idk what's going on with that. But the fix is to remove pymilvus from the toml, I'm using redis so I suppose that works, Milvus OSX users might need some kind of fix.

blasscoc avatar Apr 05 '23 13:04 blasscoc

try this command CFLAGS="-I/opt/homebrew/opt/openssl/include" LDFLAGS="-L/opt/homebrew/opt/openssl/lib" GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 pip install grpcio==1.47.5

skytian avatar Apr 06 '23 08:04 skytian

Thanks Skytian

blasscoc avatar Apr 06 '23 14:04 blasscoc