[intrepid-jaunty upgrade] crash on python2.6 install with qmtest

Bug #348322 reported by Steve Beattie
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Fix Released
Undecided
Michael Vogt
Jaunty
Fix Released
Undecided
Michael Vogt
qmtest (Ubuntu)
Fix Released
Undecided
Michael Vogt
Jaunty
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: update-manager

This is from running a update-manager -d upgrade from intrepid to jaunty as a stress test, the intrepid system had about 4000 packages installed before the upgrade started. In this upgrade, update-manager popped up two error dialogs; the first was that the python package had failed to install with an exit code of 4, and the second was that update-manager had hit an error that it couldn't continue from, but it continued on anyway.

Tags: iso-testing
Revision history for this message
Steve Beattie (sbeattie) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Here is the error:

Setting up python (2.6.1-0ubuntu4) ...^M
running python rtupdate hooks for python2.6...^M
Compiling /usr/lib/python2.6/dist-packages/qm/external/DocumentTemplate/DT_Util.py ...^M
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/qm/external/DocumentTemplate/DT_Util.py', 212, 25, 'def reorder(self, s, with=None, without=()):\n'))^M
^M
Compiling /usr/lib/python2.6/dist-packages/qm/test/cmdline.py ...^M
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/qm/test/cmdline.py', 1913, 14, ' as = { "format" : format }\n'))^M
^M
pycentral: pycentral updatedefault: error byte-compiling files (126)^M
pycentral updatedefault: error byte-compiling files (126)^M
error running python rtupdate hook pycentral^M
Updating *.pc symlinks for python-gst0.10...^M
Updating *.pc symlinks for python-gtk2-dev...^M
/usr/lib/gdesklets/sensor/Sensor.py:82: SyntaxWarning: assertion is always true, perhaps remove parentheses?^M
  assert(self.__id, "The ID is invalid in the constructor.")^M
dpkg: error processing python (--configure):^M
 subprocess post-installation script returned error exit status 4^M

it looks like its trying to byte compile the old version (intrepid) of qmtest, that fails and that causes a cascade of failures.

Michael Vogt (mvo)
summary: - [intrepid-jaunty upgrade] update-manager claimed it couldn't continue,
- but appears to be doing so anyway
+ [intrepid-jaunty upgrade] crash on python2.6 install with qmtest
Revision history for this message
Michael Vogt (mvo) wrote :

I make this a python-defaults bug for now, it seems that the jaunty version of qmtest has "depends: python (<< 2.7) and (>= 2.5). But the intrepid version does not. So we may need a similar workaround like for ufw where we added a versionized conflict.

Revision history for this message
Michael Vogt (mvo) wrote :

Uploaded new python-defaults with conflicts line

Changed in python-defaults (Ubuntu Jaunty):
assignee: nobody → mvo
status: New → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

Uploaded fixed qmtest that does not use the keywords as and with

Changed in qmtest (Ubuntu Jaunty):
assignee: nobody → mvo
status: New → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

qmtest is accepted in the archive, not sure why this bug didn't auto-close. Changelog:

qmtest (2.4-5ubuntu2) jaunty; urgency=low

  * fix python2.6 keywords that cause the byte compile to fail
    (LP: #384322)

Changed in qmtest:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-defaults - 2.6.1-0ubuntu6

---------------
python-defaults (2.6.1-0ubuntu6) jaunty; urgency=low

  [ Michael Vogt ]
  * Add versionized conflict against qmtest for lower version than jaunty
    to ensure that the new version of qmtest is available when the new
    python2.6 gets installed. This works around a install failure in
    intrepid->jaunty upgrade (LP: #348322)

 -- Steve Langasek <email address hidden> Thu, 26 Mar 2009 19:24:09 -0700

Changed in python-defaults:
status: Fix Committed → Fix Released
tags: added: iso-testing
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.