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 fails #4

Closed
abhinavsingh opened this issue Jun 4, 2013 · 3 comments
Closed

pip install fails #4

abhinavsingh opened this issue Jun 4, 2013 · 3 comments

Comments

@abhinavsingh
Copy link

Thought of giving smiley a try however it failed to install. Logs below:

$ pip install smiley
Downloading/unpacking smiley
  Downloading smiley-0.2.0.tar.gz
  Running setup.py egg_info for package smiley

    Installed /private/var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-6b4pnb/pbr-0.5.11/d2to1-0.2.10-py2.7.egg
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    zip_safe flag not set; analyzing archive contents...

    Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/pbr-0.5.11-py2.7.egg
    Searching for d2to1
    Reading http://pypi.python.org/simple/d2to1/
    Best match: d2to1 0.2.10
    Downloading http://pypi.python.org/packages/source/d/d2to1/d2to1-0.2.10.tar.gz#md5=be97f5330bae3206e1555b58dae23848
    Processing d2to1-0.2.10.tar.gz
    Running d2to1-0.2.10/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-ypOQtz/d2to1-0.2.10/egg-dist-tmp-68UsKz

    Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/d2to1-0.2.10-py2.7.egg
    Searching for setuptools-git>=0.4
    Reading http://pypi.python.org/simple/setuptools_git/
    Best match: setuptools-git 1.0b1
    Downloading http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-1.0b1.tar.gz#md5=ac67cbaa1336b7de25b1b5ff93b4e90d
    Processing setuptools-git-1.0b1.tar.gz
    Running setuptools-git-1.0b1/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-ecsGhu/setuptools-git-1.0b1/egg-dist-tmp-J6Zsfu
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer'
      warnings.warn(msg)
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer_email'
      warnings.warn(msg)

    Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/setuptools_git-1.0b1-py2.7.egg
    Searching for distribute
    Reading http://pypi.python.org/simple/distribute/
    Reading http://packages.python.org/distribute
    Best match: distribute 0.6.45
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.45.tar.gz#md5=8953f2c07e6700dabf2ec150129b8c31
    Processing distribute-0.6.45.tar.gz
    Running distribute-0.6.45/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-EmRLM6/distribute-0.6.45/egg-dist-tmp-ekbTc2
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
    Egg installation
    Patching...
    Renaming /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg to /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1370334696.6
    Patching complete.
    Relaunching...
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
    Egg installation
    Already patched.
    After install bootstrap.
    Creating /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info
    Creating /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools.pth

    Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg
    /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py:286: UserWarning: Module pkg_resources was already imported from /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py, but /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg is being added to sys.path
    /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py:286: UserWarning: Module setuptools was already imported from /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.py, but /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg is being added to sys.path
    error in setup command: Error parsing /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/setup.cfg: ZipImportError: bad local file header in /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
    Complete output from command python setup.py egg_info:


Installed /private/var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-6b4pnb/pbr-0.5.11/d2to1-0.2.10-py2.7.egg

warning: no previously-included files found matching '.gitignore'

warning: no previously-included files found matching '.gitreview'

warning: no previously-included files matching '*.pyc' found anywhere in distribution

zip_safe flag not set; analyzing archive contents...



Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/pbr-0.5.11-py2.7.egg

Searching for d2to1

Reading http://pypi.python.org/simple/d2to1/

Best match: d2to1 0.2.10

Downloading http://pypi.python.org/packages/source/d/d2to1/d2to1-0.2.10.tar.gz#md5=be97f5330bae3206e1555b58dae23848

Processing d2to1-0.2.10.tar.gz

Running d2to1-0.2.10/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-ypOQtz/d2to1-0.2.10/egg-dist-tmp-68UsKz



Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/d2to1-0.2.10-py2.7.egg

Searching for setuptools-git>=0.4

Reading http://pypi.python.org/simple/setuptools_git/

Best match: setuptools-git 1.0b1

Downloading http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-1.0b1.tar.gz#md5=ac67cbaa1336b7de25b1b5ff93b4e90d

Processing setuptools-git-1.0b1.tar.gz

Running setuptools-git-1.0b1/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-ecsGhu/setuptools-git-1.0b1/egg-dist-tmp-J6Zsfu

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer'

  warnings.warn(msg)

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer_email'

  warnings.warn(msg)



Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/setuptools_git-1.0b1-py2.7.egg

Searching for distribute

Reading http://pypi.python.org/simple/distribute/

Reading http://packages.python.org/distribute

Best match: distribute 0.6.45

Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.45.tar.gz#md5=8953f2c07e6700dabf2ec150129b8c31

Processing distribute-0.6.45.tar.gz

Running distribute-0.6.45/setup.py -q bdist_egg --dist-dir /var/folders/rr/swx6lwfd0g1b1l40y4x2ln0r0000gn/T/easy_install-EmRLM6/distribute-0.6.45/egg-dist-tmp-ekbTc2

Before install bootstrap.

Scanning installed packages

Setuptools installation detected at /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg

Egg installation

Patching...

Renaming /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg to /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1370334696.6

Patching complete.

Relaunching...

Before install bootstrap.

Scanning installed packages

Setuptools installation detected at /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg

Egg installation

Already patched.

After install bootstrap.

Creating /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info

Creating /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools.pth

Copying distribute-0.6.45-py2.7.egg to /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley



Installed /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg

/Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py:286: UserWarning: Module pkg_resources was already imported from /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py, but /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg is being added to sys.path

/Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/dist.py:286: UserWarning: Module setuptools was already imported from /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.py, but /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/distribute-0.6.45-py2.7.egg is being added to sys.path

error in setup command: Error parsing /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley/setup.cfg: ZipImportError: bad local file header in /Users/abhinavsingh/Builds/PyEnv/playground/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/abhinavsingh/Builds/PyEnv/playground/build/smiley
Storing complete log in /Users/abhinavsingh/.pip/pip.log
@abhinavsingh
Copy link
Author

Not to forget that even though it failed, destroyed my virtualenv. Not a big problem but thought you might be interested in knowing.

$ pip freeze
Traceback (most recent call last):
  File "/Users/abhinavsingh/Builds/PyEnv/playground/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Fixed by re-installation of distribute:

curl http://python-distribute.org/distribute_setup.py | python

@dhellmann
Copy link
Collaborator

It looks like this may be an issue with pbr, the packaging tool. https://bugs.launchpad.net/pbr/+bug/1186194

One comment suggests that using distribute instead of setuptools does work correctly, but it sounds like that's not the case for you?

@dhellmann
Copy link
Collaborator

The solution to this problem is to upgrade to the latest setuptools before running pip (and to stop using distribute).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants