apt-listchanges crashes when using synaptic

Bug #92191 reported by Przemek K.
4
Affects Status Importance Assigned to Milestone
apt-listchanges (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: apt-listchanges
Distro: feisty
Package version: 2.72ubuntu4

apt-listchanges crashes when invoked by Synaptic, leaving this error message:
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 219, in <module>
    main()
  File "/usr/bin/apt-listchanges", line 87, in main
    frontend = apt_listchanges.make_frontend(config.frontend, len(debs), config)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 136, in make_frontend
    "The error is:\n") % e)
TypeError: not all arguments converted during string formatting

But Synaptic is able to continue the installation without crash.

Przemek K. (azrael)
description: updated
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This bug should be fixed with my apt-listchanges_2.72ubuntu5.dsc upload. Please reopen if you still experience this problem after the update.

Please also attach the output of:
$ dpkg -l python-gtk2 python-glade2

Changed in apt-listchanges:
assignee: nobody → mvo
status: Unconfirmed → Fix Released
Revision history for this message
Matt Zimmerman (mdz) wrote :

I was experiencing the same problem, and this bug was being triggered by another bug:

>>> gtk = __import__("AptListChangesGtk")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: Bad magic number in /usr/lib/site-python/AptListChangesGtk.pyc

mizar:[~] file /usr/lib/site-python/AptListChangesGtk.pyc
/usr/lib/site-python/AptListChangesGtk.pyc: python 2.4 byte-compiled

Revision history for this message
Przemek K. (azrael) wrote :

apt-listchanges no longer crashes, but I get a warning:
The gtk frontend needs a working python-gtk2 and python-glade2.
Those imports can not be found. Falling back to pager.
The error is: Bad magic number in /usr/lib/site-python/AptListChangesGtk.pyc

<<azrael@laptop:~>> dpkg -l python-gtk2 python-glade2 apt-listchanges
Wybór=U=Nieznany/I=Instalacja/R=Usunięcie/P=Wyczyszczenie/H=Zatrzymanie
| Stan=N=Brak/I=Zainst./C=Skonfig./U=Rozpakowany/F=Nieskonfig./H=Wpół-zainst.
|/ Błędy?=(brak)/H=Wstrzym./R=Do przeinst./X=Obydwa (Stan,Błędy:wielk.lit.=źle)
||/ Nazwa Wersja Opis
+++-=========================-=========================-==================================================================
ii python-glade2 2.10.4-0ubuntu3 GTK+ bindings: Glade support
ii python-gtk2 2.10.4-0ubuntu3 Python bindings for the GTK+ widget set
ii apt-listchanges 2.72ubuntu5 Display change history from .deb archives

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

Hm, this error should have been fixed with the 2.72ubuntu5 upload (it should remove leftover files in /usr/lib/site-python/AptListChangesGtk.pyc from a older install). Can you please do a
$ ls -l /usr/lib/site-python/
and send me the output?

Thanks,
 Michael

Revision history for this message
Przemek K. (azrael) wrote :

<<azrael@laptop:~>> ls -l /usr/lib/site-python/
razem 4
-rw-r--r-- 1 root root 3321 2007-02-04 21:01 AptListChangesGtk.pyc

Michael Vogt (mvo)
Changed in apt-listchanges:
status: Fix Released → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

This should be fixed with 2.72ubuntu6 now. My first upload got reject, sorry for this.

Changed in apt-listchanges:
status: In Progress → Fix Released
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.