Please change all occurrences of "import gobject" to "from gi.repository import GObject"

91 views
Skip to first unread message

Алексей Веселов

unread,
Jul 13, 2016, 8:46:55 AM7/13/16
to Foobnix плеер
staruy@linux-fiuk:/tmp/foobnix/foobnix> gdb /usr/bin/python
GNU gdb (GDB; openSUSE Leap 42.1) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
Missing separate debuginfos, use: zypper install python-base-debuginfo-2.7.9-21.3.x86_64
(gdb) set args /usr/bin/foobnix
(gdb) run
Starting program: /usr/bin/python /usr/bin/foobnix
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/bin/foobnix", line 11, in <module>
    from foobnix.fc.fc import FC
  File "/usr/local/lib/python2.7/site-packages/foobnix/fc/fc.py", line 10, in <module>
    from foobnix.util import const
  File "/usr/local/lib/python2.7/site-packages/foobnix/util/__init__.py", line 6, in <module>
    from gi.repository import GLib
  File "/usr/lib64/python2.7/site-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

Reply all
Reply to author
Forward
0 new messages