[Distutils] distribute does not install with python3 on Ubuntu machine

Giulio Genovese giulio.genovese at gmail.com
Fri Mar 15 22:46:53 CET 2013


If I run (on an Ubuntu machine) the command:
sudo pip install --upgrade distribute
Everything goes well and the package installs.

But if I run the same with Python3 with:
sudo pip-3.2 install --upgrade distribute
I get this:
"File "setuptools/dist.py", line 103
   except ValueError, e:
                         ^
 SyntaxError: invalid syntax"
I think the problem is that with someone recently forgot to put the
parentheses (i.e. "except ValueError, e:" should be "except (ValueError,
e):") and therefore this does not work anymore with python3.

It should be easy to fix. Furthermore, this problem seems to be widespread
within the package.

Giulio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130315/cc5b7d58/attachment.html>


More information about the Distutils-SIG mailing list