PyGIWarning: GnomeKeyring was imported without specifying a version first.

Bug #1510392 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keyring (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Importing the keyring module produces a warning:

    $ python
    Python 2.7.8 (default, Oct 20 2014, 15:05:19)
    [GCC 4.9.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import keyring
    /usr/lib/python2.7/dist-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

The GNOME backend ought to use gi.require_version(...) to suppress it.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: python-keyring 4.0-1ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Oct 27 08:33:19 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-07-25 (1188 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: python-keyring
UpgradeStatus: Upgraded to wily on 2015-10-22 (4 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's fixed in upstream 5.6 version (which is in Debian and should make its way to Ubuntu this cycle)
https://github.com/jaraco/keyring/commit/47a51f8da1e0d3fa946327fb9fba1d3ebd4ff275

Changed in python-keyring (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

New version needs setuptools-scm MIR, bug 1510532.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-keyring - 5.6-1ubuntu1

---------------
python-keyring (5.6-1ubuntu1) xenial; urgency=medium

  * Merge with Debian unstable (LP: #1510392), remaining change:
    - Drop build-dependency on python-fs, it is in universe.

 -- Dmitry Shachnev <email address hidden> Tue, 27 Oct 2015 16:36:55 +0300

Changed in python-keyring (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.