Cannot pycompile python-qt4

Bug #997569 reported by John Veness
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have a problem with package python-qt4 in Ubuntu 12.04 (package version 4.9.1-2ubuntu1). It's postinst script is failing, with:

Sorry: TypeError: ('compile() expected string without null bytes',)

If I manually type in the command in the postinst script, adding -v for verbose, namely:

pycompile -p python-qt4 -v

I get the output:

D: pycompile:215: argv: ['/usr/bin/pycompile', '-p', 'python-qt4', '-v']
D: pycompile:216: options: {'force': False, 'verbose': True, 'package': 'python-qt4', 'regexpr': None, 'vrange': None, 'optimize': False}
D: pycompile:217: args: []
Sorry: TypeError: ('compile() expected string without null bytes',)

(so not much more informative).

Any ideas? This happened during an Ubuntu 11.10 to 12.04 upgrade.

Revision history for this message
John Veness (pelago) wrote :

After a lot of debugging of the pycompile code, I've finally realised that this was caused by a local problem. One of my python-qt4 files (/usr/share/pyshared/PyQt4/uic/Loader/loader.py) was corrupt - it was a binary file rather than a text file, which caused pycompile to fail. It would have been nice if there was additional debug output from pycompile which would have pinpointed that. Anyway, I'll close this as invalid.

Changed in python-qt4 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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