post installation script failing by attempting to compile stuff it shouldn't

Bug #31390 reported by Stuart Bishop
6
Affects Status Importance Assigned to Milestone
codespeak-lib (Ubuntu)
Fix Released
Medium
Guilherme Salgado
pylib (Ubuntu)
Invalid
Medium
Unassigned
Breezy
Invalid
Medium
Unassigned

Bug Description

The post installation script is failing because it is failing to compile 'syntaxerror.py', which I expect is a python script containing a deliberate syntax error for testing.

Revision history for this message
James Henstridge (jamesh) wrote :

Here is the apt-get output when installing the package:

$ sudo apt-get install --reinstall python2.4-pylib
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 305kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com breezy/universe python2.4-pylib 0.7.20050829-0ubuntu1 [305kB]
Fetched 305kB in 30s (9957B/s)

Preconfiguring packages ...
(Reading database ... 112984 files and directories currently installed.)
Preparing to replace python2.4-pylib 0.7.20050829-0ubuntu1 (using .../python2.4-pylib_0.7.20050829-0ubuntu1_amd64.deb) ...
Unpacking replacement python2.4-pylib ...
Setting up python2.4-pylib (0.7.20050829-0ubuntu1) ...
Compiling /usr/lib/python2.4/site-packages/py/test/testing/data/syntax_error.py ...
  File "/usr/lib/python2.4/site-packages/py/test/testing/data/syntax_error.py", line 3
    this is really not python
                            ^
SyntaxError: invalid syntax

dpkg: error processing python2.4-pylib (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python2.4-pylib
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Stuart Bishop (stub) wrote :

(10:19:45) James Henstridge: stub: to install the python2.4-pylib package, I needed to delete the syntax_error.py file and rerun "apt-get install python2.4-pylib"
(10:20:04) James Henstridge: stub: and then edit /usr/bin/py.test2.4 and change "from _findpy import py" to "import py"

Changed in pylib:
assignee: nobody → salgado
status: Unconfirmed → Fix Released
Stuart Bishop (stub)
Changed in pylib:
status: Unconfirmed → Rejected
Revision history for this message
KarlGoetz (kgoetz) wrote :

I can reproduce this on my dapper system.

Changed in pylib:
status: Unconfirmed → Confirmed
Revision history for this message
Barry deFreese (bddebian) wrote :

This package has been renamed to python-codespeak-lib. Needs an update to conflict/replace python2.4-pylib. Thank you.

Changed in pylib:
status: Confirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.