[Bug 885732] Re: breaks application when Gtk3 is also used
Dmitry Shachnev
mitya57 at gmail.com
Fri Mar 8 13:10:02 UTC 2013
** Changed in: python-keyring (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-keyring in Ubuntu.
https://bugs.launchpad.net/bugs/885732
Title:
breaks application when Gtk3 is also used
Status in Python Keyring:
Fix Released
Status in “python-keyring” package in Ubuntu:
Fix Released
Bug description:
keyring imports the gnomekeyring module, which uses gtk2.
This breaks any Gtk3 applications in which it is loaded.
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import keyring
>>> from gi.repository import GOBject
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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".',))
I'm not sure what the best solution is to work around this - it seems
pretty hard to determine if the current application is a gtk2 or gtk3
app, especially if keyring is imported before Gtk. It would be nice if
there was at least some way of disabling the GNOME backend for
keyring, so applications that are aware of this issue can work around
it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-keyring/+bug/885732/+subscriptions
More information about the foundations-bugs
mailing list