software-center crashes with AttributeError: No constructor defined

Bug #687399 reported by Jean-Baptiste Lallement on 2010-12-08
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: software-center

software-center 3.1.4

software-center fails to launch in a fully updated Natty with the error
-----
Traceback (most recent call last):
  File "/usr/bin/software-center", line 109, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/app.py", line 209, in __init__
    self.navhistory_forward_action)
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 97, in __init__
    self._build_ui()
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 108, in _build_ui
    self.apps_filter)
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 244, in __init__
    self.build(desktopdir)
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 489, in build
    self._build_homepage_view()
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 315, in _build_homepage_view
    self._append_featured_and_new()
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 404, in _append_featured_and_new
    nonapps_visible=AppStore.NONAPPS_ALWAYS_VISIBLE)
  File "/usr/share/software-center/softwarecenter/view/appview.py", line 182, in __init__
    self._perform_search()
  File "/usr/share/software-center/softwarecenter/view/appview.py", line 249, in _perform_search
    enquire.set_sort_by_key(LocaleSorter(self.db), reverse=False)
  File "/usr/share/software-center/softwarecenter/view/appview.py", line 594, in __init__
    xapian.Sorter.__init__(self)
  File "/usr/lib/python2.6/dist-packages/xapian/__init__.py", line 5620, in __init__
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
AttributeError: No constructor defined

Michael Vogt (mvo) on 2010-12-08
Changed in software-center (Ubuntu):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 3.1.5

---------------
software-center (3.1.5) natty; urgency=low

  * softwarecenter/app.py:
    - on a invalid locale, reset the locale to "C" to avoid
      later crashes in the apthistory that uses strptime
      (lp: #630248)
  * softwarecenter/view/appview.py:
    - fix crash with the latest python-xapian (LP: #687399)
 -- Michael Vogt <email address hidden> Wed, 08 Dec 2010 18:05:05 +0100

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers