[Python-apps-team] Bug#767506: nagstamon: ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject"

Axel Beckert abe at debian.org
Fri Oct 31 14:57:18 UTC 2014


Package: nagstamon
Version: 1.0.1-1

Dear Maintainer,

when starting nagstamon on Sid, I always get the following error message
(but it seems to work after I had to try to save the password multiple
times):

$ nagstamon
Traceback (most recent call last):
  File "/usr/share/nagstamon/Nagstamon/Config.py", line 365, in _LoadServersMultipleConfig
    servers[server].monitor_url))) or ""
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 38, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/dist-packages/keyring/backends/SecretService.py", line 53, in get_password
    collection = self.get_default_collection()
  File "/usr/lib/python2.7/dist-packages/keyring/backends/SecretService.py", line 41, in get_default_collection
    collection = secretstorage.get_default_collection(bus)
  File "/usr/lib/python2.7/dist-packages/secretstorage/collection.py", line 172, in get_default_collection
    'default', session)
  File "/usr/lib/python2.7/dist-packages/secretstorage/collection.py", line 151, in create_collection
    dismissed, unlocked = exec_prompt_glib(bus, prompt)
  File "/usr/lib/python2.7/dist-packages/secretstorage/util.py", line 119, in exec_prompt_glib
    from gi.repository import GLib
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 39, in <module>
    raise ImportError(_static_binding_error)
ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental'), (109, 'buildd-unstable'), (109, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagstamon depends on:
ii  librsvg2-common       2.40.5-1
ii  python-beautifulsoup  3.2.1-1
ii  python-gtk2           2.24.0-4
ii  python-notify         0.1.1-4
ii  python-pkg-resources  5.5.1-1
pn  python:any            <none>
ii  sox                   14.4.1-4

nagstamon recommends no packages.

Versions of packages nagstamon suggests:
pn  gnome-terminal   <none>
ii  rdesktop         1.8.2-2
ii  xtightvncviewer  1.3.9-6.4+b1

-- no debconf information



More information about the Python-apps-team mailing list