Bug#708872: ImportError: could not import gobject

Jérémy Lal kapouer at melix.org
Sun May 19 10:30:50 UTC 2013


Package: python-gi
Version: 3.8.2-1
Severity: important

This error happened when launching gnome-mousetrap. But it really looked like a
python-gi bug, so here it is :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/main.py", line 50, in <module>
    from lib import httpd, dbusd, settings
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/httpd.py", line 31, in <module>
    import mouse
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/mouse.py", line 30, in <module>
    import pyatspi
  File "/usr/lib/python2.7/dist-packages/pyatspi/__init__.py", line 17, in <module>
    from gi.repository import Atspi
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 27, in <module>
    from ._gi import _API, Repository
ImportError: could not import gobject (error was: 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".',))


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages python-gi depends on:
ii  gir1.2-glib-2.0        1.36.0-2+b1
ii  libc6                  2.17-3
ii  libffi6                3.0.13-4
ii  libgirepository-1.0-1  1.36.0-2+b1
ii  libglib2.0-0           2.36.1-2build1
ii  multiarch-support      2.17-3
ii  python                 2.7.3-5

python-gi recommends no packages.

Versions of packages python-gi suggests:
ii  python-gi-cairo  3.8.2-1

-- no debconf information




More information about the pkg-gnome-maintainers mailing list