-
Notifications
You must be signed in to change notification settings - Fork 3k
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 7.1.1 broke our install workflow #3045
Comments
This was due to the removal of the distribute backwards compatibility hack. You'll need to remove that. Something like: should do it. |
Same problem here. This workflow doesn't work anymore (ubuntu 12.04):
If I understand correctly, the new workflow would be:
It would be kind of cumbersome to have to remember to do this for every virtualenv that needs a recent setuptools, no? |
I spoke too fast, uninstalling setuptools as suggested by @rbtcollins breaks pip:
Until this behaviour is fixed, looks like the only way to make this work is to run |
In a fresh environment:
|
Always use pip (or another metadata-compatible installer) to install packages. 'setup.py install' is usually not tracking all the metadata correctly. |
I am developing the package, and it has Cython extensions that are compiled, so using When installing from the command line (and not a requirements file), options are available, to fetch and build a C library that the (optional) extension depends on. As described in #1883, these options cannot yet be passed to |
A difference between the installations is that python setup.py install
...
pip uninstall dd
Uninstalling dd-0.2.0:
~/.virtualenvs/dev/lib/python2.7/site-packages/dd-0.2.0-py2.7-macosx-10.4-x86_64.egg
Proceed (y/n)? y
Successfully uninstalled dd-0.2.0
Traceback (most recent call last):
File "~/.virtualenvs/dev/bin/pip", line 11, in <module>
sys.exit(main())
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/__init__.py", line 217, in main
return command.main(cmd_args)
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/basecommand.py", line 248, in main
pip_version_check(session)
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/utils/outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/utils/__init__.py", line 858, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 629, in __init__
self.add_entry(entry)
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 685, in add_entry
for dist in find_distributions(entry, True):
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2075, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1605, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1963, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1843, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "~/.virtualenvs/dev/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1783, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '~/.virtualenvs/dev/lib/python2.7/site-packages/dd-0.2.0-py2.7-macosx-10.4-x86_64.egg' compared to: pip install --verbose .
...
pip uninstall dd
Uninstalling dd-0.2.0:
~/.virtualenvs/dev/lib/python2.7/site-packages/dd-0.2.0-py2.7.egg-info
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/__init__.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/__init__.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_compat.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_compat.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_parser.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_parser.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_setup.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_setup.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_version.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/_version.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/autoref.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/autoref.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/bdd.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/bdd.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/bdd_parsetab.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/bdd_parsetab.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/cudd.so
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/dddmp.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/dddmp.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/dddmp_parsetab.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/dddmp_parsetab.pyc
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/mdd.py
~/.virtualenvs/dev/lib/python2.7/site-packages/dd/mdd.pyc
Proceed (y/n)? y
Successfully uninstalled dd-0.2.0 |
Closing this, the way to handle an upgrade breaking you is to pin to an older version or fix the underlying breakage. |
We have a Python module with the following requirements.txt:
The initial set up includes both
pip install --upgrade pip
andpip install -r requirements.txt
, so we're exposed to new versions of pip immediately.Following the upgrade to pip 7.1.1, the second step has started to fail. Note that we run this on older RHEL6 machines which come with an old version of setuptools out of the box. Here is the error:
I suspect this was due to the move of the pip version check in 7.1.1, and I've successfully worked around it by adding --disable-pip-version-check to the requirements.txt command line, but there's probably still an underlying bug here.
The text was updated successfully, but these errors were encountered: