NoneType passed in portage

Bug #558887 reported by René 'Necoro' Neumann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Portato
Fix Released
Medium
Unassigned
0.14
Fix Committed
Medium
René 'Necoro' Neumann

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/portato/gui/windows/main.py",
line 1659, in cb_idle_show
    klass(self.window, packages, self.queue, self.jump_to)
  File
"/usr/lib/python2.6/site-packages/portato/gui/windows/pkglist.py", line
151, in __init__
    PkgListWindow.__init__(self, _("World Packages"), *args, **kwargs)
  File
"/usr/lib/python2.6/site-packages/portato/gui/windows/pkglist.py", line
42, in __init__
    self.packages = system.sort_package_list(packages, only_cpv = True)
  File
"/usr/lib/python2.6/site-packages/portato/backend/portage/system.py",
line 242, in sort_package_list
    pkglist.sort(self.compare_versions)
  File
"/usr/lib/python2.6/site-packages/portato/backend/portage/system.py",
line 129, in compare_versions
    v1 = self.split_cpv(v1)
  File
"/usr/lib/python2.6/site-packages/portato/backend/portage/system.py",
line 237, in split_cpv
    cpv = portage.dep_getcpv(cpv)
  File "/usr/lib/portage/pym/portage/dep/__init__.py", line 736, in
dep_getcpv
    return Atom(mydep).cpv
  File "/usr/lib/portage/pym/portage/dep/__init__.py", line 562, in __init__
    if "!" == s[:1]:
TypeError: 'NoneType' object is unsubscriptable

Portato version: 9999 (git: c7b564ac84ad9fb7a72ee0896c2616b0383c68de)
System: Gentoo Python version: 2.6.4 (r264:75706, Apr 3 2010, 21:39:34)
[GCC 4.3.4]
Used backend: Portage 2.2_rc67
Used database type: sql
pygtk: 2.16.0 (using GTK+: 2.18.6)
pygobject: 2.20.0 (using GLib: 2.22.4)

 affects portato
 importance low
 tag mail portage

Tags: mail portage
Revision history for this message
René 'Necoro' Neumann (necoro) wrote :
Revision history for this message
René 'Necoro' Neumann (necoro) wrote : Re: 'NoneType' object has no attribute 'get_selected'

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 affects portato/0.14
 milestone 0.14
 assignee necoro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku/iiwACgkQ4UOg/zhYFuC6nwCfdlsZE2JbLnfpsg/q79nEyxo6
wCQAn3mHt/pcGYgE7g9T+X/u2KvKAcvt
=+ia+
-----END PGP SIGNATURE-----

Revision history for this message
René 'Necoro' Neumann (necoro) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status confirmed
 importance medium

Happens for example, when using "Show World Packages"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku/o2YACgkQ4UOg/zhYFuD6NACeJI8Lo+K6WVcRVbaJkNVDRREf
utMAn33KRtGuzUDEtNuNhGCBZOyA7zJZ
=h6ui
-----END PGP SIGNATURE-----

Changed in portato:
importance: Low → Medium
status: New → Confirmed
Revision history for this message
René 'Necoro' Neumann (necoro) wrote :

Fixed in 673edfd

Changed in portato:
status: Confirmed → 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.