-
-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip-sync uninstalls pkg-resources, breaks psycopg2 #422
Comments
Debian and derivatives have split pkg-resources from setuptools for a long time. I ran into this issue in my first ten minutes of trying out pip-tools. |
I have a similar issue: `rnwolf ~ workspace cpptest4 pip-sync rnwolf ~ workspace cpptest4 pip-compile > requirements.txt |
Work-around: pip uninstall setuptools && pip install -U setuptools |
A work-around that worked for me: add a line @merwok 's workaround didn't work for me. |
doesn't work for me.
@merwok 's workaround is ugly, but worked here. |
Adding pkg-resources==0.0.0 to requirements.in worked for me. Tested in following way on debian stretch: After that flask has been installed and pkg-resources is still there. I tested it also by adding bpython to requirements.in (and pip-compile && pip-sync) and removing it followed by pip-compile and pip-sync. It worked without any problems, i.e. pkg-resources was preserved. |
It not only breaks psycopg2, but also pip-tools itself! |
pip-sync
uninstallspkg-resources
, which in turn breaks installation of many other packages.pkg-resources
is a new "system" package that was recently extracted fromsetuptools
(since version 31, I believe). I think it must be handled similarly tosetuptools
.Steps to replicate
On a fully updated Ubuntu 16.04 LTS:
Expected result
pip-sync
keepspkg-resources
in place,psycopg2
installs normally.Actual result
pip-sync
uninstallspkg-resources
, thenpsycopg2
installation fails with:ImportError: No module named 'pkg_resources.extern'
The text was updated successfully, but these errors were encountered: