Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32463 - [python2-distribute] Importing setuptools in python2 raises ImportError

Attached to Project: Arch Linux
Opened by kozec (kozec) - Sunday, 04 November 2012, 19:10 GMT
Last edited by Allan McRae (Allan) - Friday, 16 November 2012, 12:00 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:
Importing setuptools in python2 raises ImportError from related missing module. This is pretty problematic since it breaks builds of other python2 packages.

Additional info:
python2 2.7.3-2
python2-distribute 0.6.29-1
x86_64 architecture

Steps to reproduce:
run python2 interpreter, enter 'import setuptools'

Error log:
>>> import setuptools
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/usr/lib/python2.7/site-packages/setuptools/extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 6, in <module>
from setuptools.command.install import install
File "/usr/lib/python2.7/site-packages/setuptools/command/__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "/usr/lib/python2.7/site-packages/setuptools/command/install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
ImportError: cannot import name Distribution
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 16 November 2012, 12:00 GMT
Reason for closing:  Works for me
Comment by Dave Reisner (falconindy) - Sunday, 04 November 2012, 19:34 GMT
Works for me...

$ python2
Python 2.7.3 (default, Apr 24 2012, 00:00:54)
[GCC 4.7.0 20120414 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>>

Missing any files for the package?
Comment by Stéphane Gaudreault (stephane) - Monday, 05 November 2012, 11:07 GMT
works for me

Loading...