installation fails for Python 3

Issue #62 invalid
Brett Cannon created an issue

Trying to install Distribute 0.6.4 fails on Python 3.1 with python3 setup.py install --user:

{{{

!python

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "setuptools/init.py", line 2, in <module> from setuptools.extension import Extension, Library File "setuptools/extension.py", line 2, in <module> from setuptools.dist import _get_unpatched File "setuptools/dist.py", line 102 except ValueError, e: ^ SyntaxError: invalid syntax }}}

Maybe it has something to do with 2to3 failing on distribute_setup.3k.py?:

Can't parse build/src/distribute_setup_3k.py: ParseError: bad input: type=22, value='=', context=('', (150, 72))

Comments (4)

  1. Tarek Ziadé repo owner

    Works for me with Python 3.1.1 under mac os x, still trying to reproduce your problem here... Will let you know

  2. Brett Cannon reporter

    I just tried it again and it worked! First time may have been an issue with 0.6.2 being installed and the second time from not using a fresh copy after installing for Python 2.6.

    Sorry about the false alarm.

  3. Former user Account Deleted

    I get the same error when I try to run easy-install.py. Tried fixing it by editing dist.py and putting (ValueError, e), but then I just got a new error, and so on, all thing that are 2.x, like the above, leading 0's, exec without brackets,... I installed with "python setup.py install" P.S.: related or identical to #286?

  4. Log in to comment