[GTK3] "Installed" > "Other" is empty (TypeError: argument of type 'instance' is not iterable)

Bug #829750 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

software-center-gtk3 trunk r2151, Ubuntu Ocelot

1. Install some items that are not in any repository. (For example, upgrade your kernel and then have the old kernel dropped from the Ubuntu archive.)
1. From the "Installed" menu, choose "Other".

What happens:
* No items are displayed.
* A traceback:
------------
2011-08-19 21:04:18,219 - softwarecenter.db.enquire - ERROR - _get_estimate_nr_apps_and_nr_pkgs failed
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 109, in _get_estimate_nr_apps_and_nr_pkgs
    tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
  File "/home/mpt/hacking/software-center/softwarecenter/db/appfilter.py", line 65, in __call__
    if (not pkgname in self.cache[pkgname] or
TypeError: argument of type 'instance' is not iterable
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/viewswitcher.py", line 164, in config_view
    vm.display_page(pane, page, state)
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 147, in display_page
    callback(page, view_state)
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/installedpane.py", line 361, in display_overview_page
    self._build_categorised_view()
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/installedpane.py", line 191, in _build_categorised_view
    persistent_duplicate_filter=(i>0))
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 295, in set_query
    self._blocking_perform_search()
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 203, in _blocking_perform_search
    matches = enquire.get_mset(0, self.limit, None, xfilter)
  File "/home/mpt/hacking/software-center/softwarecenter/db/appfilter.py", line 65, in __call__
    if (not pkgname in self.cache[pkgname] or
TypeError: argument of type 'instance' is not iterable
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/viewswitcher.py", line 282, in config_view
    vm.display_page(pane, page, state)
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 147, in display_page
    callback(page, view_state)
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/installedpane.py", line 361, in display_overview_page
    self._build_categorised_view()
  File "/home/mpt/hacking/software-center/softwarecenter/ui/gtk3/panes/installedpane.py", line 191, in _build_categorised_view
    persistent_duplicate_filter=(i>0))
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 295, in set_query
    self._blocking_perform_search()
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 152, in _blocking_perform_search
    nr_apps, nr_pkgs = self._get_estimate_nr_apps_and_nr_pkgs(enquire, q, xfilter)
  File "/home/mpt/hacking/software-center/softwarecenter/db/enquire.py", line 117, in _get_estimate_nr_apps_and_nr_pkgs
    tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
  File "/home/mpt/hacking/software-center/softwarecenter/db/appfilter.py", line 65, in __call__
    if (not pkgname in self.cache[pkgname] or
TypeError: argument of type 'instance' is not iterable
------------

Related branches

Revision history for this message
Kiwinote (kiwinote) wrote :

Fixed by nzmm in branch linked.

Changed in software-center (Ubuntu):
status: New → Fix Committed
Kiwinote (kiwinote)
Changed in software-center (Ubuntu):
status: Fix Committed → 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.