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 fails with tar.bz2 even though there are other formats available #497

Closed
kijasek opened this Issue Mar 28, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@kijasek

kijasek commented Mar 28, 2012

This bug/request is environment related.

Steps to reproduce:

  1. pip install feedparser
    File "/usr/lib/python2.7/tarfile.py", line 1742, in bz2open
    raise CompressionError("bz2 module is not available")
    CompressionError: bz2 module is not available
  2. pip install http://feedparser.googlecode.com/files/feedparser-5.1.1.tar.gz
    works fine

Comments:
It would be nice if pip checks what tarball formats are available to download and in case of failure retry with other available formats.
We have big project with lots of dependencies specified using setuptools and install_requires parameter. Automatic deployment doesn't work for us because pip fails installing bz2 archive. It's a pity because other tarball formats are available to download.
Maybe it would be better to favor tar.gz than tar.bz2?

@carljm

This comment has been minimized.

Show comment
Hide comment
@carljm

carljm Mar 28, 2012

Contributor

It's easy to try importing bz2 once at startup and see if its there. I'd certainly accept a pull request to conditionally remove .tar.bz2 from the list of valid sdist formats to look for if the bz2 module is not available (the user should get a stderr warning, though).

Contributor

carljm commented Mar 28, 2012

It's easy to try importing bz2 once at startup and see if its there. I'd certainly accept a pull request to conditionally remove .tar.bz2 from the list of valid sdist formats to look for if the bz2 module is not available (the user should get a stderr warning, though).

@alp82

This comment has been minimized.

Show comment
Hide comment
@alp82

alp82 commented Mar 16, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment