[opensuse-factory] Minor bug warning in openSUSE Leap 42.2 Alpha 3
Whenever an osc command is used, the system issues the following warning: finger@linux-bpig:~/home:lwfinger:branches:Virtualization/virtualbox> osc r /usr/lib/python2.7/site-packages/keyring/backends/Gnome.py:6: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GnomeKeyring As suggested by the warning, the following one-line patch removes the warning: Index: virtualbox/Gnome.py =================================================================== --- virtualbox.orig/Gnome.py +++ virtualbox/Gnome.py @@ -2,6 +2,7 @@ import os try: from gi import Repository + gi.require_version('GnomeKeyring', '1.0') if Repository.get_default().enumerate_versions('GnomeKeyring'): from gi.repository import GnomeKeyring except ImportError: Larry -- If I was stranded on an island and the only way to get off the island was to make a pretty UI, I’d die there. Linus Torvalds -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sat, 2016-08-27 at 21:27 -0500, Larry Finger wrote:
Whenever an osc command is used, the system issues the following warning:
finger@linux-bpig:~/home:lwfinger:branches:Virtualization/virtualbox> osc r /usr/lib/python2.7/site-packages/keyring/backends/Gnome.py:6: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GnomeKeyring
That's https://bugzilla.opensuse.org/show_bug.cgi?id=991970 The python-keyring package is a SLE package; not sure why there is no update for that in the queue yet. Cheers, Dominique
participants (2)
-
Dominique Leuenberger / DimStar
-
Larry Finger