FS#27206 - [python2] Error: invalid command 'egg_info'

Attached to Project: Arch Linux
Opened by Martin Putniorz (sputnikus) - Monday, 21 November 2011, 14:07 GMT
Last edited by Stéphane Gaudreault (stephane) - Wednesday, 23 November 2011, 15:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Python cannot execute egg_info command while installing the package. That prevents the installation of packages using pip.

Additional info:
* python2 2.7.2-2
* python2-distribute 0.6.24-1
* python2-pip 1.0.2-1


Steps to reproduce:
1) python setup.py egg_info
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Wednesday, 23 November 2011, 15:05 GMT
Reason for closing:  Works for me
Comment by Stéphane Gaudreault (stephane) - Monday, 21 November 2011, 20:42 GMT
If you want to execute the egg_info with python2, you should use
python2 setup.py egg_info
not
python setup.py egg_info

Here executing egg_info on a few packages works. What are you trying to do exactly ?
Comment by Martin Putniorz (sputnikus) - Monday, 21 November 2011, 21:48 GMT
I was trying to install new requests package (https://gist.github.com/1382595)
Comment by Stéphane Gaudreault (stephane) - Monday, 21 November 2011, 22:47 GMT
I assume we talk about this : http://pypi.python.org/pypi/requests/0.8.2
Right ?

Looks like it works for me :

# cd /tmp/requests-0.8.2
# python2 setup.py egg_info
running egg_info
writing requests.egg-info/PKG-INFO
writing top-level names to requests.egg-info/top_level.txt
writing dependency_links to requests.egg-info/dependency_links.txt
reading manifest file 'requests.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'requests.egg-info/SOURCES.txt'
Comment by Martin Putniorz (sputnikus) - Tuesday, 22 November 2011, 07:42 GMT
After python2 and python2-distutils reinstall (pacman -Rdd, pacman -Scc, pacman -S) it's still not working.
But if I try to do install packages in virtualenv using pip, it works.

Loading...