Closed basictheprogram closed 5 years ago
Looks like this is being talked about in the Google Group.
Sadly this is a known pip
issue. Pip is not able to resolve dependencies forefront in a complete way, so it just installs wrong versions and verifies them afterward.
There is an open issue for pip: https://github.com/pypa/pip/issues/988
You can work around it by doing:
pip install TurboGears2
pip install tg.devtools
instead of just pip install tg.devtools
.
If you are writing the setup.py
of an application, make sure TurboGears2
is installed first (usually need to be the last entry in install_requires
).
TurboGears 2.4 should solve this by supporting WebOb1.8+
It looks like the behaviour of pip is also influenced by local cache:
$ rm -rf cenv; virtualenv cenv; . cenv/bin/activate; python ~/get-pip.py
Successfully installed pip-18.1
$ pip install tg.devtools
[...]
turbogears2 2.3.12 has requirement WebOb<1.8.0,>=1.2, but you'll have webob 1.8.4 which is incompatible.
Successfully installed MarkupSafe-1.1.0 PasteDeploy-1.5.2 Pygments-2.2.0 Tempita-0.5.2 TurboGears2-2.3.12 WebOb-1.8.4 WebTest-1.4.3 backlash-0.1.4 crank-0.8.1 gearbox-0.1.1 repoze.lru-0.7 tg.devtools-2.3.12 tgext.debugbar-0.4.0
VS
$ pip install --no-cache-dir tg.devtools
[...]
Successfully installed MarkupSafe-1.1.0 PasteDeploy-1.5.2 Pygments-2.2.0 Tempita-0.5.2 TurboGears2-2.3.12 WebOb-1.7.4 WebTest-1.4.3 backlash-0.1.4 crank-0.8.1 gearbox-0.1.1 repoze.lru-0.7 tg.devtools-2.3.12 tgext.debugbar-0.4.0
Anyone who is affected by this: please try the beta of the new pip dependency resolver in pip 20.2 and see whether that helps?
Following https://turbogears.readthedocs.io/en/latest/turbogears/wiki20.html
turbogears2 2.3.12 has requirement WebOb<1.8.0,>=1.2, but you'll have webob 1.8.3 which is incompatible.