Ubuntu install problems
python at mrabarnett.plus.com
Sat Mar 20 18:26:58 CET 2010
> I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed.
> Whenever I apt-get install anything It ends with a series of python
> (dependency?) errors. Anybody got any idea?
>> aptget libgcj-common
> Reading package lists...
> Building dependency
> Reading state information...
> libgcj-common is already the newest
> 0 upgraded, 0 newly installed, 0 to remove and 6 not
> 26 not fully installed or
> After this operation, 0B of additional disk space will be
> Setting up libgcj-common
> (1:4.4.1-1ubuntu2) ...
> Compiling /usr/lib/python3.1/dist-packages/
> aotcompile.py ...
> File "/usr/lib/python3.1/dist-packages/aotcompile.py", line
> raise Error, "nothing to
> SyntaxError: invalid
> Compiling /usr/lib/python3.1/dist-packages/classfile.py ...
> File "/usr/lib/python3.1/dist-packages/classfile.py", line 30
> raise TypeError, type(arg)
> SyntaxError: invalid syntax
In Python 2 an exception can be raised with the old-style:
raise Error, "nothing to do"
or the new-style:
raise Error("nothing to do")
In Python 3 the old style is not supported (it was abandoned as part of
the general clean-up).
Another related change is that the old-style:
except Error, e:
in Python 2 has been completely replaced by the new-style:
except Error as e:
in Python 3 (also available in Python 2.6).
More information about the Python-list