Closed
Description
- Version: 5.31.1
- Python: 3.10.4
- OS: osx
pip freeze
output
nanoid==2.0.0
pika==1.3.1
PyJWT==2.6.0
pymongo==4.2.0
pytest==7.1.3
randominfo==2.0.2
requests==2.21.0
siwe==2.1.1
pusher==3.2.0
dnspython==2.2.1
sanic==22.6.2
sanic-jwt==1.8.0
sanic-routing==22.3.0
sanic-cors==2.1.0
What was wrong?
When running pip install -r requirement.txt, it will throw Cannot install -r requirements.txt (line 8) and siwe because these package versions have conflicting dependencies.
error.
Error output:
#8 12.34 The conflict is caused by:
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.31.1 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.31.0 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.30.0 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.29.2 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.29.1 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.29.0 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.28.0 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.27.0 depends on websockets<10 and >=9.1
#8 12.34 sanic 22.6.2 depends on websockets>=10.0
#8 12.34 web3 5.26.0 depends on websockets<10 and >=9.1
#8 12.34
#8 12.34 To fix this you could try to:
#8 12.34 1. loosen the range of package versions you've specified
#8 12.34 2. remove package versions to allow pip attempt to solve the dependency conflict
#8 12.34
How can it be fixed?
This is simply fixed by lossening the range of package versions of the sanic library but that would lead to downgrading sanic to version 21 which isn't very ideal
web3.py version constraint on websockets is a bit outdated since websockets latest version is now 10. Hope someone can consider updating the websockets dependency constraint to include websockets v10 as well.
Metadata
Metadata
Assignees
Labels
No labels