question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip install zc.recipe.egg fails on pip >= 7.x

See original GitHub issue

On Windows, I was using pip 7.0.1 to install some eggs, notably zc.recipe.egg which is part of buildout.

Since I upgraded virtualenv to version 13.1.0, which comes with a local pip wheel and thus installs pip 7.1.0, when I run pip install zc.recipe.egg in my virtual env, I get an error:

D:\Applications\tmp\test2>Scripts\pip.exe install zc.recipe.egg
Collecting zc.recipe.egg
Installing collected packages: zc.recipe.egg
zc.recipe.egg is in an unsupported or invalid wheel

The error message is in an unsupported or invalid wheel is not very explicit and I do not know why pip 7.1.0 (and only this version of pip) is complaining about this egg ?

I only have this problem with this egg…

Does anyone have a clue on what this means, why it appeared when I change my pip version and if there is a way to fix it ?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
mgedmincommented, Oct 7, 2015

FWIW pip install --no-cache-dir zc.recipe.egg seems to work as a workaround.

1reaction
qwcodecommented, Oct 16, 2015

here’s the hidden stack trace for this.
pkg_resources is confused by the “egg” in the name

Exception:                                                                                                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                                                                                           
  File "/home/qwcode/p/pypa/pip/pip/basecommand.py", line 200, in main                                                                                                                                                                       
    status = self.run(options, args)                                                                                                                                                                                                         
  File "/home/qwcode/p/pypa/pip/pip/commands/install.py", line 302, in run                                                                                                                                                                   
    root=options.root_path,                                                                                                                                                                                                                  
  File "/home/qwcode/p/pypa/pip/pip/req/req_set.py", line 657, in install                                                                                                                                                                    
    **kwargs
  File "/home/qwcode/p/pypa/pip/pip/req/req_install.py", line 805, in install
    version = pip.wheel.wheel_version(self.source_dir)
  File "/home/qwcode/p/pypa/pip/pip/wheel.py", line 559, in wheel_version
    wheel_data = dist.get_metadata('WHEEL')
  File "/home/qwcode/p/pypa/pip/pip/_vendor/pkg_resources/__init__.py", line 1611, in get_metadata
    return self._get(self._fn(self.egg_info, name))
  File "/home/qwcode/p/pypa/pip/pip/_vendor/pkg_resources/__init__.py", line 1722, in _get
    with open(path, 'rb') as stream:
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-ucnzjI/zc.recipe.egg/EGG-INFO/WHEEL'
Read more comments on GitHub >

github_iconTop Results From Across the Web

zc.recipe.egg - PyPI
The egg-installation recipe installs eggs into a buildout eggs directory. It also generates scripts in a buildout bin directory with egg paths baked...
Read more >
Can't install zc.buildout with zc.recipe.egg with Python 3.6 or ...
I encountered the same problem and believe I have found the underlying problem. The latest setuptools version (52.0.0) removed easy_install ...
Read more >
Buildout troubleshooting — Plone Documentation v5.2
Buildout gives you an error if there is a dependency shared by two components, and one of the components wants to have a...
Read more >
Installation Failed - SENAITE Community
I think it cant realize package Werkzeug, so I install this package by pip: pip install Werkzeug . Then i rebuild : PYTHONHTTPSVERIFY=0...
Read more >
https://cerweb.ifremer.fr/datacrunch2/dependances/...
Install the zc.buildout egg with easy_install and use the buildout script installed in a Python scripts area. 2. Use the buildout bootstrap script...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found