Ubuntu install problems

Benjamin Kaplan benjamin.kaplan at case.edu
Sat Mar 20 13:15:16 EDT 2010


On Sat, Mar 20, 2010 at 1:00 PM, waugust <waugustynski at gmail.com> wrote:

> 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...
> Done
> Building dependency
> tree
> Reading state information...
> Done
> libgcj-common is already the newest
> version.
> 0 upgraded, 0 newly installed, 0 to remove and 6 not
> upgraded.
> 26 not fully installed or
> removed.
> After this operation, 0B of additional disk space will be
> used.
> 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
> 115
>    raise Error, "nothing to
> do"
>
> ^
> SyntaxError: invalid
> syntax
>
> 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
>
>
Did you set /usr/bin/python to Python 3.1? It needs to stay as the system
default Python (in this case 2.6) or else lots of stuff breaks. You're
getting those syntax errors because of the difference between Python 2.x
(which the scripts were written for) and Python 3.x (which is being run)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100320/abab9b40/attachment.html>


More information about the Python-list mailing list