-
Notifications
You must be signed in to change notification settings - Fork 134
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
📌 Issue Overview
While installing dependencies from requirements.txt, a major dependency conflict related to protobuf versions is occurring. The following packages are causing incompatible requirements:
-
google-ai-generativelanguage==0.6.18
⤷ Requiresprotobuf>=3.20.2, <7.0.0but excludes versions4.21.0to4.21.5. -
google-api-core==2.25.1
⤷ Requiresprotobuf>=3.19.5, <7.0.0. -
googleapis-common-protos==1.70.0
⤷ Requiresprotobuf>=3.20.2, <7.0.0but excludes4.21.0to4.21.5. -
grpcio*==1.73.0
⤷ Requiresprotobuf>=6.30.0, <7.0.0. -
onnxruntime==1.22.0
⤷ Requiresprotobuf<6.0, >=3.0.0. -
opentelemetry-proto==1.33.0
⤷ Requiresprotobuf<6.0, >=5.0. -
protobuf==6.31.1is currently specified and seems incompatible with multiple packages.
Also poetry.lock is not synced with pyproject.toml
🔍 Steps to Reproduce
-
Clone or open the project that includes the requirements.txt.
-
Run the following command in your terminal or Replit shell:
pip install -r requirements.txt- Observe the dependency resolution errors during installation.
🎯 Expected Behavior
All dependencies in requirements.txt should be installable without version conflicts.
pip install -r requirements.txt should complete successfully.
🚨 Actual Behavior
The conflict is caused by:
The user requested protobuf==6.31.1
google-ai-generativelanguage 0.6.18 depends on protobuf!=4.21.0, !=4.21.1, !=4.21.2, !=4.21.3, !=4.21.4, !=4.21.5, <7.0.0 and >=3.20.2
google-api-core 2.25.1 depends on protobuf!=3.20.0, !=3.20.1, !=4.21.0, !=4.21.1, !=4.21.2, !=4.21.3, !=4.21.4, !=4.21.5, <7.0.0 and >=3.19.5
googleapis-common-protos 1.70.0 depends on protobuf!=4.21.1, !=4.21.2, !=4.21.3, !=4.21.4, !=4.21.5, <7.0.0 and >=3.20.2
grpcio-health-checking 1.73.0 depends on protobuf<7.0.0 and >=6.30.0
grpcio-status 1.73.0 depends on protobuf<7.0.0 and >=6.30.0
grpcio-tools 1.73.0 depends on protobuf<7.0.0 and >=6.30.0
onnxruntime 1.22.0 depends on protobuf
opentelemetry-proto 1.33.0 depends on protobuf<6.0 and >=5.0Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue