Fails to load widgets that use the pygi bindings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glade (Ubuntu) |
Confirmed
|
Undecided
|
Ubuntu Desktop |
Bug Description
With the move to disallow importing of static modules alongside pygi, glade no longer loads widgets built with the latter:
evan@poppy-
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
from gi.repository import Gtk, Gdk, GObject, Pango
File "/usr/lib/
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".',))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
from gi.repository import Gtk, GObject
File "/usr/lib/
from ._gi import _API, Repository
ImportError: cannot import name _API
Changed in glade (Ubuntu): | |
assignee: | nobody → Ubuntu Desktop (ubuntu-desktop) |
This is due to the glade_python_ init_pygobject_ check function, which loads the static gobject python library.