[Bug 829186] Re: Mixes static and GI library bindings
Martin Pitt
martin.pitt at ubuntu.com
Fri Aug 19 04:54:58 UTC 2011
This is a curious case where the old pygobject 2.28 actually silently
hid a bug in the code:
$ update-manager
Traceback (most recent call last):
File "/usr/bin/update-manager", line 109, in <module>
app.main(options)
File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 1211, in main
self.fillstore()
File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 1066, in fillstore
self.update_count()
File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 679, in update_count
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, 10, self.update_last_updated_text, None)
TypeError: second argument not callable
** Changed in: update-manager (Ubuntu)
Importance: Undecided => High
** Changed in: update-manager (Ubuntu)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/829186
Title:
Mixes static and GI library bindings
Status in “oneconf” package in Ubuntu:
Triaged
Status in “ubiquity” package in Ubuntu:
Incomplete
Status in “ubuntuone-control-panel” package in Ubuntu:
Triaged
Status in “update-manager” package in Ubuntu:
Fix Committed
Bug description:
This is a tracking bug for fixing programs which will crash with a
newer pygobject >= 2.90. This is now absolutely zero tolerant against
importing both the static and the GI version of a particular library.
This was mostly the case with 2.28 as well, but did work in some cases
(like "import gobject; from gi.repository import Gtk", in particular
for "glib" and "gobject"). These now cause errors as well.
See bug 828751 for some more information for this.
$ ubuntuone-control-panel-gtk
Traceback (most recent call last):
File "/usr/bin/ubuntuone-control-panel-gtk", line 33, in <module>
from ubuntuone.controlpanel.gui.gtk import main
File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/gtk/__init__.py", line 28, in <module>
from ubuntuone.controlpanel.gui.gtk.gui import main
File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/gtk/gui.py", line 39, in <module>
from gi.repository import GLib
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, 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".',))
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/829186/+subscriptions
More information about the foundations-bugs
mailing list