Python package version conflicts
reald opened this issue · comments
reald commented
Environment:
- CTFd Version/Commit: ef6752c
- Operating System: Debian GNU/Linux 12 (bookworm)
What happened?
$> pip install -r requirements.txt
[...]
ERROR: Cannot install -r requirements.txt (line 78) and greenlet==2.0.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested greenlet==2.0.1
gevent 23.9.1 depends on greenlet>=3.0rc3; platform_python_implementation == "CPython" and python_version >= "3.11"
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
What did you expect to happen?
All python packages are installed in venv.
How to reproduce your issue
$> source venv/bin/activate
$> pip install -r requirements.txt
Any associated stack traces or error logs
ERROR: Cannot install -r requirements.txt (line 78) and greenlet==2.0.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested greenlet==2.0.1
gevent 23.9.1 depends on greenlet>=3.0rc3; platform_python_implementation == "CPython" and python_version >= "3.11"
Kevin Chung commented
pip-compile generated this with gevent showing greenlet==2.0.1
so something must have changed here?
Kevin Chung commented
I see, this was changed at some point: https://www.gevent.org/changelog.html#bugfixes
Kevin Chung commented
I will fix this in 3.7.
Kevin Chung commented
Ah this is because you are on Python 3.11 or 3.12. CTFd currently uses 3.9 but it's worth updating the version.
Kevin Chung commented
Should be fixed now with #2449