Python3.1 compiling instead of 2.6
I have installed Python 2.5 (for GAE), Python 2.6 (Ubuntu default), and Python 3.1 (latest).
What appears to be happening is that Python 3.1 attempts to compile and runs into syntactical errors due to version differences:
> aptget python-pyatspi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pyatspi
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B/45.6kB of archives.
After this operation, 184kB of additional disk space will be used.
Selecting previously deselected package python-pyatspi.
(Reading database ... 214048 files and directories currently installed.)
Unpacking python-pyatspi (from .../python-
Setting up libgcj-common (1:4.4.1-1ubuntu2) ...
Compiling /usr/lib/
File "/usr/lib/
raise Error, "nothing to do"
^
SyntaxError: invalid syntax
Compiling /usr/lib/
File "/usr/lib/
raise TypeError, type(arg)
SyntaxError: invalid syntax
pycentral: pycentral pkginstall: error byte-compiling files (2)
pycentral pkginstall: error byte-compiling files (2)
dpkg: error processing libgcj-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up python-pyatspi (1.28.1-0ubuntu1) ...
Compiling /usr/lib/
File "/usr/lib/
print template % _ACCESSIBLE_CACHE
^
SyntaxError: invalid syntax
Compiling /usr/lib/
File "/usr/lib/
except KeyboardInterrupt, e:
SyntaxError: invalid syntax
pycentral: pycentral pkginstall: error byte-compiling files (7)
pycentral pkginstall: error byte-compiling files (7)
dpkg: error processing python-pyatspi (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libgcj-common
python-pyatspi
E: Sub-process /usr/bin/dpkg returned an error code (1)
> python -V
Python 2.6.4
Notice that if I run python -V it confirms the active version is 2.6.4 (not 3.1)
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: