[apport] apport-gtk crashed with ImportError during package upgrade

Bug #86007 reported by Bernhard Urban-Forster
98
This bug affects 14 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

i was doing an apt-get upgrade
Unpacking replacement python ...
Preparing to replace python-minimal 2.5-0ubuntu5 (using .../python-minimal_2.5-0
ubuntu6_all.deb) ...
Unpacking replacement python-minimal ...
Setting up python-minimal (2.5-0ubuntu6) ...
(Reading database ... 93771 files and directories currently installed.)
Preparing to replace linux-restricted-modules-common 2.6.20.2-8.6 (using .../lin
ux-restricted-modules-common_2.6.20.2-8.7_all.deb) ...
Unpacking replacement linux-restricted-modules-common ...
Preparing to replace linux-restricted-modules-2.6.20-8-generic 2.6.20.2-8.6 (usi
ng .../linux-restricted-modules-2.6.20-8-generic_2.6.20.2-8.7_i386.deb) ...
Unpacking replacement linux-restricted-modules-2.6.20-8-generic ...
Preparing to replace python-at-spi 0.6.1-1 (using .../python-at-spi_0.6.1-1ubunt
u1_i386.deb) ...
Unpacking replacement python-at-spi ...
Preparing to replace python-cairo 1.2.0-1build1 (using .../python-cairo_1.2.0-1u
buntu2_i386.deb) ...
Unpacking replacement python-cairo ...
Preparing to replace python-dbus 0.80.1-1ubuntu2 (using .../python-dbus_0.80.1-1
ubuntu3_i386.deb) ...
Unpacking replacement python-dbus ...
Preparing to replace python-gobject 2.12.3-0ubuntu2 (using .../python-gobject_2.
12.3-0ubuntu3_i386.deb) ...
Unpacking replacement python-gobject ...
Preparing to replace python-gst0.10 0.10.6-1ubuntu1 (using .../python-gst0.10_0.
10.6-1ubuntu2_i386.deb) ...
Unpacking replacement python-gst0.10 ...
Preparing to replace python-pyorbit 2.14.1-2build1 (using .../python-pyorbit_2.1
4.1-2ubuntu1_i386.deb) ...
Unpacking replacement python-pyorbit ...
Preparing to replace python-xml 0.8.4-6ubuntu1 (using .../python-xml_0.8.4-6ubun
tu3_i386.deb) ...
Unpacking replacement python-xml ...
Setting up python (2.5-0ubuntu6) ...

Setting up linux-restricted-modules-common (2.6.20.2-8.7) ...

Setting up linux-restricted-modules-2.6.20-8-generic (2.6.20.2-8.7) ...

Setting up python-at-spi (0.6.1-1ubuntu1) ...

Setting up python-cairo (1.2.0-1ubuntu2) ...

Setting up python-dbus (0.80.1-1ubuntu3) ...

Setting up python-gobject (2.12.3-0ubuntu3) ...

Setting up python-gst0.10 (0.10.6-1ubuntu2) ...

Setting up python-pyorbit (2.14.1-2ubuntu1) ...
Setting up python-xml (0.8.4-6ubuntu3) ...

ProblemType: Crash
Date: Sun Feb 18 12:48:06 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/share/apport/apport-gtk
InterpreterPath: /usr/bin/python2.5
Package: apport-gtk 0.56
ProcCmdline: /usr/bin/python /usr/share/apport/apport-gtk
ProcCwd: /media/ubuntuedgy/home/lewurm
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/apport/apport-gtk']
SourcePackage: apport
Traceback:
 Traceback (most recent call last):
   File "/usr/share/apport/apport-gtk", line 16, in <module>
     import gobject, gtk, gtk.glade
 ImportError: No module named gobject
Uname: Linux spa-herd4 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
Bernhard Urban-Forster (lewurm-gmx) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

Same for me, but it was glade that gave the error.

Revision history for this message
Martin Pitt (pitti) wrote :

Indeed this makes sense. During a package upgrade, the python packages are temporarily broken, so we must detect and ignore this situation.

Changed in apport:
assignee: nobody → pitti
importance: Undecided → High
status: Unconfirmed → In Progress
Martin Pitt (pitti)
Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.57) feisty; urgency=low
 .
   * apport/ui.py: Intercept ENOMEM and fail gracefully; there is little else
     we can do at that point, and there is no point in presenting a crash
     report for this. (LP: #85155)
   * apport/ui.py: Ignore KeyError when deleting the CoreDump field on sending
     a reduced report. This Should Not Happen™, but nevertheless did.
     (LP: #86083)
   * gtk/apport-gtk, qt4/apport-qt: Intercept ImportError for the non-builtin
     Python modules. This usually happens for crashes when there is a
     dist-upgrade active and some Python packages have not been configured yet.
     (LP: #86007)
   * apport/ui.py: If the problem report does not apply to a packaged program,
     and we have an ExecutablePath, mention it in the error message for easier
     debugging.
   * apport/python_hook.py: Resolve symbolic links in ExecutablePath.
     (LP: #85529)

Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
PaulS (stibbard) wrote :

Running synaptic package manager. Crashed when I hit the "close" button after updates were applied.

Revision history for this message
boucek (boucek) wrote : I can't believe you helped me save over $1,000 on this watches

Hello Customer

Don't hesitate. We do our best to satisfy our customers and ensure fast delivery and excellent service. If you receive a damaged watch we will ship another one to you free of charge.
Make your order before the prices go up.

**************************************************************************************
Today I received my two watches. Both watches were spectacular, you guys did a wonderful job and I will definitely recommend you to all my friends!
Thankee!
                     Marla Friedman
**************************************************************************************

Click here ---> http://ranoa.ru

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.