Ubuntu install problems
benjamin.kaplan at case.edu
Sat Mar 20 18:15:16 CET 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...
> 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
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...
More information about the Python-list