Some aditional info:

I started it from the CLI "/usr/bin/gnome-app-install" and that spat out
a nice list of repeating errors :

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/AppInstall/Menu.py", line 243, in 
_visible_filter
    self.itemIsInstalled(item):
  File "/usr/lib/python2.6/dist-packages/AppInstall/Menu.py", line 419, in 
itemIsInstalled
    return (self.cache.has_key(item.pkgname) and
AttributeError: 'NoneType' object has no attribute 'has_key'

to end with :

/usr/lib/python2.6/dist-packages/AppInstall/AppInstall.py:1248: GtkWarning: 
gtk_tree_model_sort_set_sort_column_id: assertion 
`tree_model_sort->default_sort_func != NULL' failed
  item.applications.set_sort_column_id(-1, sort_type)

I took a look at /usr/lib/python2.6/dist-packages/AppInstall/Menu.py
which made me realise something. The last time I ran "Add /Remove"
(software) from the gnome menu I selected the filter to show only
installed programs. This filter is used again the next time gnome-app-
install is run and is where I think things go wrong.

lines 224 to 256 from /usr/lib/python2.6/dist-packages/AppInstall/Menu.py 
(added >>here>> at line 243)
    def _visible_filter(self, model, iter):
        item = model.get_value(iter, COL_ITEM)
        #print "_visible_filter: ", item
        if item:
            # check for the various view settings
            if not self.activationStyle.isApproved(
               item.component, item.pkgname):
                return False
            if self.filter == SHOW_ONLY_MAIN and item.component != "main":
                return False
            if self.filter == SHOW_ONLY_SUPPORTED and item.supported != True:
                return False
            if self.filter == SHOW_ONLY_FREE and item.free == False:
                return False
            if self.filter == SHOW_ONLY_PROPRIETARY and item.free == True:
                return False
            if self.filter == SHOW_ONLY_THIRD_PARTY and item.thirdparty != True:
                return False
            if self.filter == SHOW_ONLY_INSTALLED and not \
>>here>>               self.itemIsInstalled(item):
                return False
            # Allow to only show a subset by the activation filter
            if (self.activationStyle.selectFilter is not None and
                not self._activationStyleFilter(item)):
                return False
            # if we search, do the ranking updates 
            if len(self.searchTerms) > 0:
                rank = self._filterAndRank(item)
                if rank == None:
                    return False
                else:
                    item.rank = rank
        return True

I hope this helps : )

-- 
gnome-app-install crashed with AttributeError in itemIsInstalled()
https://bugs.launchpad.net/bugs/389749
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to