1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #62 invalid

installation fails for Python 3

Brett Cannon
created an issue

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



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. 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.

  2. Anonymous

    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?

  3. Log in to comment