gcommit crashes with 'ImportError: could not import gobject' on clean Ubuntu 12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This has been reproduced on two machines of two different developers, both are Ubuntu 12.04 32 bits English, with bzr and bzr-gtk both installed from the Ubuntu software Center.
0.047 bazaar version: 2.5.1
0.047 bzr arguments: [u'gcommit']
0.049 looking for plugins in /home/fsilva/
0.250 looking for plugins in /usr/lib/
0.250 Plugin name bzrtools already loaded
0.256 encoding stdout as sys.stdout encoding 'UTF-8'
0.257 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.258 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
open_display()
File "/usr/lib/
from gi.repository import Gtk
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".',))
Note that bzr-gtk from the Ubuntu software Center is bzr-gtk3.
if I manually install bzr-gtk2 from:
https:/
into my ~/.bazaar/plugins (thus hiding the bzr-gtk from the Ubuntu software Center), everything works fine.
Because of this problem occurs on "vanilla", "not hacked" Ubuntu 12 installations, using standard packages, we fear that this is going to be widespread.
Both crashing machines are ubuntu 12 32-bit. Some colleagues on Ubuntu 12 64-bit don't have the problem.