gnome-language-selector crashed with AttributeError in havePackageLists()

Bug #545848 reported by Gabriel Thörnblad
356
This bug affects 69 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Fix Released
High
Michael Vogt
Lucid
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: language-selector

Tried to start gnome-language-selector after fresh install from Lucid Lynx Beta 1 with Swedish as the default language.
gnome-language-selector crashed immediately.

ProblemType: Crash
Architecture: amd64
Date: Wed Mar 24 10:24:31 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/gnome-language-selector
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
InterpreterPath: /usr/bin/python2.6
Package: language-selector 0.5.2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gnome-language-selector
ProcEnviron:
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
PythonArgs: ['/usr/bin/gnome-language-selector']
SourcePackage: language-selector
Title: gnome-language-selector crashed with AttributeError in havePackageLists()
Uname: Linux 2.6.32-17-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Gabriel Thörnblad (gabriel-thornblad) wrote :
visibility: private → public
Revision history for this message
Pavel Kukacka (pavel-kukacka) wrote :

Also affects me with czech language set.
When I tried to run the settings app (System->Admin...->Lang...) the error occurs and the app does not start and show.

Revision history for this message
Paul Cook (narkosen) wrote :

Also affects me - language English UK.

Revision history for this message
awi1817 (awi1817) wrote :

Affects German language settings as well

Revision history for this message
Robert Collins (lifeless) wrote :

This is due to a change in the APT library.

Changed in language-selector (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Arne Goetje (arnegoetje)
Changed in language-selector (Ubuntu):
assignee: nobody → Arne Goetje (arnegoetje)
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

This is the message I got
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_treeview_locales_drag_failed'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_treeview_locales_drag_begin'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_treeview_locales_drag_drop'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_treeview_locales_drag_leave'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_treeview_locales_drag_data_received'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_checkbutton_sync_languages_toggled'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_combobox_system_language_changed'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/SimpleGtkbuilderApp.py:40: RuntimeWarning: missing handler 'on_combobox_user_language_changed'
  self.builder.connect_signals(self)
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py:796: GtkWarning: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed
  cell = combo.get_child().get_cell_renderers()[0]
Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 32, in <module>
    options=options)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 207, in __init__
    if not self._cache.havePackageLists:
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/LangCache.py", line 190, in havePackageLists
    if indexfile.ArchiveURI("").startswith("cdrom:"):
AttributeError: 'apt_pkg.IndexFile' object has no attribute 'ArchiveURI'

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

Thanks for your bugreport.

This is a compat bug in the new python-apt.

affects: language-selector (Ubuntu) → python-apt (Ubuntu)
Changed in python-apt (Ubuntu):
assignee: Arne Goetje (arnegoetje) → Michael Vogt (mvo)
importance: Critical → High
milestone: none → ubuntu-10.04-beta-2
Changed in python-apt (Ubuntu Lucid):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-apt - 0.7.94.2ubuntu3

---------------
python-apt (0.7.94.2ubuntu3) lucid; urgency=low

  * python/indexfile.cc:
    - add missing 0.7 compat indexfile.ArchiveURI method
      (LP: #545848)
 -- Michael Vogt <email address hidden> Thu, 25 Mar 2010 10:44:31 +0100

Changed in python-apt (Ubuntu Lucid):
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.