nomic-ai / contrastors

Train Models Contrastively in Pytorch
Apache License 2.0
459 stars 35 forks source link

protobuf vision problem #18

Closed cao-hy23 closed 3 months ago

cao-hy23 commented 3 months ago

i have the error: error: protobuf 4.25.3 is installed but protobuf==3.20.2 is required by {'contrastors', 'onnxconverter-common'},

but when i pip the protobuf==3.20.2 before pip onnxconverter-common,there is the new error: error: protobuf 3.20.2 is installed but protobuf!=4.0.,!=4.21.,!=4.22.0,!=4.23.,!=4.24.,<4.26.0,>=3.20.3 is required by {'apache-beam'}

is there any solution for protobuf version conflicts?

zanussbaum commented 3 months ago

hey i'm also fighting this issue :( a quick fix is to just remove apache beam and the protobuf installations. I don't think we need apache beam here in this repo

cao-hy23 commented 3 months ago

hey i'm also fighting this issue :( a quick fix is to just remove apache beam and the protobuf installations. I don't think we need apache beam here in this repo

thank you for your reply,maybe you can add protobuf==3.20.2 in front of onnxconverter-common,i fixed it by doing this and change python3.11->python3.9