Package: python
Version: 2.6.5-11
Trying to install libapache2-mod-python, and the rtupdate hooks fail
due to a package and variable named 'as', which is of course a
reserved keyword in Python.
r...@tektonic:/etc/apache2# apt-get install libapache2-mod-python
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-python is already the newest version.
The following packages were automatically installed and are no longer required:
librpmio0 libnspr4-0d python2.5-dev liblzma2 libelf1 libnss3-1d
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 694 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up python (2.6.5-11) ...
running python rtupdate hooks for python2.6...
Compiling /usr/lib/scons/SCons/Tool/386asm.py ...
SyntaxError: ('invalid syntax',
('/usr/lib/scons/SCons/Tool/386asm.py', 40, 9, 'import as\n'))
Compiling /usr/lib/scons/SCons/Tool/gas.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/scons/SCons/Tool/gas.py',
36, 9, 'import as\n'))
pycentral: pycentral updatedefault: error byte-compiling files (142)
pycentral updatedefault: error byte-compiling files (142)
error running python rtupdate hook pycentral
WARNING: compile error while trying to byte-compile
/usr/lib/aap/Filetype.py: SyntaxError: ('invalid syntax',
('/usr/lib/aap/Filetype.py', 1417, 10, ' as = 0\n'))
dpkg: error processing python (--configure):
subprocess post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of python-central:
python-central depends on python (>= 2.4.3-10); however:
Package python is not configured yet.
dpkg: error processing python-central (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-python:
libapache2-mod-python depends on python (<< 2.7); however:
Package python is not configured yet.
libapache2-mod-python depends on python (>= 2.6); however:
Package python is not configured yet.
libapache2-mod-python depends on python-central (>= 0.6.11); however:
Package python-central is not configured yet.
dpkg: error processing libapache2-mod-python (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-dev:
python-dev depends on python (= 2.6.5-11); however:
Package python is not configured yet.
dpkg: error processing python-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python
python-central
libapache2-mod-python
python-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
r...@tektonic:~# uname -a
Linux tektonic.jcomeau.com 2.6.18-128.2.1.el5.028stab064.7 #1 SMP Wed
Aug 26 15:47:17 MSD 2009 i686 GNU/Linux
r...@tektonic:~# ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 14 Jun 29 12:12 /lib/libc.so.6 -> libc-2.10.2.so
Suggested fix: rename package and variables to 'gas' or any other
non-Python-keyword.
--
John Comeau <[email protected]> http://jc.unternet.net/
"A place for everything, and everything
all over the place"
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]