pip install distribute fails under Python3

Create issue
Issue #360 invalid
Sean Vieira created an issue

Attempting to install distribute 0.6.35 under Python 3 results in a syntax error:

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "./setuptools/__init__.py", line 2, in <module>
    from setuptools.extension import Extension, Library
  File "./setuptools/extension.py", line 5, in <module>
    from setuptools.dist import _get_unpatched
  File "./setuptools/dist.py", line 103
    except ValueError, e:
SyntaxError: invalid syntax

Comments (6)

  1. Daniel Holth

    It is really hard for pip to install its own dependency. You should run distribute's setup.py install manually, or if you are using virtualenv re-initialize the environment with virtualenv which knows how to do the bootstrapping.

  2. Sean Vieira reporter

    I've been very impressed how pip can upgrade both itself and its dependencies in the past. In this case, however, the issue seems to be that dist.py is using the Python 2 only syntax for capturing an error (ValueError, e rather than ValueError as e).

  3. Sean Vieira reporter

    @regebro - and here I was thinking it was a recently introduced change, not a seven month standing issue - I should have run blame on dist.py first (which might have lead me to wonder how something which wasn't changed since 2006 could only now be causing issues). I'll go ahead and close this issue. Thanks!

  4. Log in to comment