Skip to content

Commit

Permalink
Improvement support colab (milvus-io#1353)
Browse files Browse the repository at this point in the history
Google colab notebook already installed protobuf==3.20.3 at the moment.
And installing grpcio-tools will request a higher version protobuf.
So a restart for notebook kernel is needed.
Indeed grpcio-tools is not mandatory for pymilvus.

Signed-off-by: Ji Bin <[email protected]>
  • Loading branch information
matrixji authored Apr 13, 2023
1 parent 046d09a commit 989ae07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pymilvus/grpc_gen/python_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
OUTDIR=.
PROTO_DIR="milvus-proto/proto"

python -m pip install "grpcio-tools==$(python3 -c 'import grpc; print(grpc.__version__)')"

python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} --pyi_out=${OUTDIR} ${PROTO_DIR}/common.proto
python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} --pyi_out=${OUTDIR} ${PROTO_DIR}/schema.proto
python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} --pyi_out=${OUTDIR} --grpc_python_out=${OUTDIR} ${PROTO_DIR}/milvus.proto
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
include_package_data=True,
install_requires=[
"grpcio>=1.49.1,<=1.53.0",
"grpcio-tools>=1.49.1,<=1.53.0",
"mmh3>=2.0",
"ujson>=2.0.0",
"pandas>=1.2.4",
Expand Down

0 comments on commit 989ae07

Please sign in to comment.