PacktPublishing / Neural-Search-From-Prototype-to-Production-with-Jina

Neural Search - From Prototype to Production with Jina, published by Packt
MIT License
10 stars 3 forks source link

bug: need to pin protobuf version #19

Open alexcg1 opened 2 years ago

alexcg1 commented 2 years ago

All examples in chapter07 fail because the version of jina in requirements.txt depends on an unpinned version of protobuf. When I ran them they pulled 4.21.5, which breaks older versions of Jina.

Running pip install protobuf==3.2.0 fixes that.

Note: this bug also affects cross-modal search example

violenil commented 2 years ago

Hi @alexcg1, when I try to run pip install protobuf==3.2.0 I get the following error:

jina 3.9.1 requires protobuf>=3.13.0, but you have protobuf 3.2.0 which is incompatible.

When I instead run pip install protobuf==3.13.0 all is well. Curious to know if this has changed for you?

alexcg1 commented 2 years ago

Which version of Python are you running?

alexcg1 commented 2 years ago

Sorry for late response, was on holiday

alexcg1 commented 2 years ago

Hi @alexcg1, when I try to run pip install protobuf==3.2.0 I get the following error:

Did you install Jina via pip install -r requirements.txt? That should have installed version 2.6.2