Ubuntu

apt-listchanges crashes when using synaptic

Reported by Przemysław Kulczycki on 2007-03-14
4
Affects Status Importance Assigned to Milestone
apt-listchanges (Ubuntu)
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.

description: updated
description: updated
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
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

Przemysław Kulczycki (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

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

Przemysław Kulczycki (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) on 2007-03-15
Changed in apt-listchanges:
status: Fix Released → In Progress
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  Edit
Everyone can see this information.

Other bug subscribers