Skip to content
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 install --use-wheel breaks with IndexError #844

Closed
vmalloc opened this issue Mar 14, 2013 · 7 comments
Closed

pip install --use-wheel breaks with IndexError #844

vmalloc opened this issue Mar 14, 2013 · 7 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@vmalloc
Copy link

vmalloc commented Mar 14, 2013

I tried the following sequence:

$ pip wheel --wheel-dir=~/wheels sphinx
$ ...
$ pip install --use-wheel --wheel-dir=~/wheels --no-index --find-links=~/wheels sphinx
Traceback (most recent call last):
  File ".../lib/python2.7/site-packages/pip/basecommand.py", line 128, in main
    status = self.run(options, args)
  File ".../lib/python2.7/site-packages/pip/commands/install.py", line 235, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File ".../lib/python2.7/site-packages/pip/req.py", line 1078, in prepare_files
    dist = list(pkg_resources.find_distributions(location))[0]
  IndexError: list index out of range

Storing complete log in /root/.pip/pip.log

Running distribute 0.6.24, wheel 1.0.0a1

@dholth
Copy link
Member

dholth commented Mar 14, 2013

You need distribute >= 0.6.28. Earlier versions won't find the .dist-info directory that contains wheel's metadata. I recommend upgrading to the newest version of distribute.

@qwcode
Copy link
Contributor

qwcode commented Mar 16, 2013

we'll soon have a clear error message to explain this requirement

@qwcode qwcode closed this as completed Mar 16, 2013
@vmalloc
Copy link
Author

vmalloc commented Mar 17, 2013

Ok, seems to work for me. Thanks!

@vmalloc
Copy link
Author

vmalloc commented Mar 17, 2013

BTW - any idea when pip 1.4 RC is planned?

@qwcode
Copy link
Contributor

qwcode commented Mar 17, 2013

3-6 months most likely

@emperorcezar
Copy link

I'm having the exact same issue with distribute 0.6.45 installing celery-with-redis==3.0

@dholth
Copy link
Member

dholth commented Jun 20, 2013

celery-with-redis is having a different issue. It looks like pip might be discarding the .dist-info directory, only unpacking its contents, because there are no files at the top level.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants