$ pip install <package> fails on missing setuptools

Bug #556189 reported by Alain Kalker
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-pip (Debian)
Fix Released
Unknown
python-pip (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Unassigned

Bug Description

TEST CASE:
1. use fresh lucid
2. install python-pip
3. run "pip install windmill"
4. watch it fail
5. install python-pip from lucid-proposed
6. repeat (3) and very that it runs now

Binary package hint: python-pip

$ pip install windmill
Downloading/unpacking windmill
  Downloading windmill-1.3.tar.gz (3.3Mb): 3.3Mb downloaded
  Running setup.py egg_info for package windmill
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
    ImportError: No module named setuptools.command
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 3, in <module>

ImportError: No module named setuptools.command

This has been fixed in Debian, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546432
Also, the python-pip package in Ubuntu is very old, see LP: #521170

Kind regards,

Alain

ProblemType: Bug
Architecture: i386
Date: Tue Apr 6 05:40:23 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: python-pip 0.3.1-1ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic-pae
SourcePackage: python-pip
Uname: Linux 2.6.31-20-generic-pae i686

Revision history for this message
Alain Kalker (miki4242) wrote :
Revision history for this message
alien8 (fb-alien8) wrote :

Hi,

I cannot confirm that bug under lucid.
mkvirtualenv pip_test
rm ~/.virtualenvs/pip_test/lib/python2.6/site-packages/setuptools* #That's a virtualenv bug of coming w/ an old setuptools version
/usr/bin/pip -E ~/.virtualenvs/pip_test install windmill

Downloading/unpacking windmill
  Running setup.py egg_info for package windmill
Installing collected packages: windmill
  Running setup.py install for windmill
    Installing windmill script to /home/a8/.virtualenvs/pip_test/bin
Successfully installed windmill

Revision history for this message
Jake Cobb (error404) wrote :

I can confirm this bug in lucid.

Relevant snippets:

$ apt-cache show python-pip | grep -E '^(Package|Version|Depends|Conflicts)'
Package: python-pip
Version: 0.3.1-1ubuntu2
Depends: python, python-central (>= 0.6.11), python-pkg-resources | python-setuptools (<< 0.6c8-1)

$ dpkg --get-selections | grep -E '^python-(pip|pkg-resources|setuptools)'
python-pip install
python-pkg-resources install

$ apt-cache show python-pkg-resources | grep -E '^(Package|Version|Depends|Conflicts)'
Package: python-pkg-resources
Version: 0.6.10-4ubuntu1
Depends: python (>= 2.6), python (<< 2.7), python-central (>= 0.6.11)
Conflicts: python-setuptools (<< 0.6c8-3), python2.3-setuptools (<< 0.6b2), python2.4-setuptools (<< 0.6b2)

$ sudo pip install pymazon
Downloading/unpacking pymazon
  Running setup.py egg_info for package pymazon
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
    ImportError: No module named setuptools.command
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 3, in <module>

ImportError: No module named setuptools.command

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in ./pip-log.txt

Revision history for this message
Tommaso (mynos-main) wrote :

I confirm as well, the package python-setuptools must be installed as well. Probably a dependency is missing.

Revision history for this message
Roderik (piep0003) wrote :

Second that confirmation:

$ sudo pip install django
Downloading/unpacking django
  Running setup.py egg_info for package django
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
    ImportError: No module named setuptools.command
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 3, in <module>

ImportError: No module named setuptools.command

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in ./pip-log.txt

(Using pip to install Django because I need 1.2)

Thanks for the fix suggestion though, Tommaso, it works :)

Revision history for this message
Christopher Lin (clizzin) wrote :

I get the same error as Karel using Linux Mint 9 (based on Lucid). Like Tommaso, I solved the issue by installing the python-setuptools package, so the best solution is probably to add a dependency on that package.

Michael Vogt (mvo)
Changed in python-pip (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Michael Vogt (mvo)
Michael Vogt (mvo)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Please fix this in natty first before SRUing. Thanks!

Changed in python-pip (Ubuntu Lucid):
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

Its fixed in natty with the 0.8.1 version we got from debian.

Changed in python-pip (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted python-pip into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python-pip (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've followed the test case and can confirm that the proposed package indeed fix the bug, marking this as verification-done, thanks all.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-pip - 0.3.1-1ubuntu2.1

---------------
python-pip (0.3.1-1ubuntu2.1) lucid-proposed; urgency=low

  * debian/control: Added python-setuptools as a dependancy.
    (LP: #556189)
 -- Vivien Nicolas <email address hidden> Wed, 26 Jan 2011 01:42:10 +0100

Changed in python-pip (Ubuntu Lucid):
status: Fix Committed → Fix Released
Changed in python-pip (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.