"SyntaxError: invalid syntax" error on syntax_error.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pylib (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-applets
The postinstall script for gnome-applets version 2.16.1-0ubuntu4 contains a compileall.py
directive which tries to compile /usr/lib/
among others.
However, 'syntax_error.py' is test function designed to be malformed, invalid python (and thus uncompilable).
This is on Edgy Eft.
Workaround I used was to temporarily comment out the one line in syntax_error.py. Temporarily moving it somewhere else would also probably work.
Output of apt-get install
-------
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up gnome-applets (2.16.1-0ubuntu4) ...
Compiling /usr/lib/
File "/usr/lib/
this is really not python
SyntaxError: invalid syntax
dpkg: error processing gnome-applets (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
gnome-applets
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------
Should mention that this is Edgy.