chatgpt-retrieval-plugin
chatgpt-retrieval-plugin copied to clipboard
Apple M1 - Can't install grpcio
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.
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
Thanks Skytian