[Bug 1027900] Re: [syncpackage] crashed with AttributeError in get_password(): 'NoneType' object has no attribute 'keyDoesNotExist'

Dmitry Shachnev mitya57 at gmail.com
Mon Nov 11 07:04:00 UTC 2013


Should no longer be an issue with python-keyring ≥ 1.2.2 (i.e. the
current version in Saucy).

** No longer affects: ubuntu-dev-tools (Ubuntu)

** 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/1027900

Title:
  [syncpackage] crashed with AttributeError in get_password():
  'NoneType' object has no attribute 'keyDoesNotExist'

Status in “python-keyring” package in Ubuntu:
  Fix Released

Bug description:
  I've used syncpackage without --bug or --sponsor as recently as
  yesterday with no problems, so I doubt this is a local system issue.
  I do have kwallet set to ask every time if it's OK to give access and
  it didn't even ask.  It was like it doesn't even wait for an answer.
  In any case, this error should be caught and a more helpful, user
  friendly error message provided.

  $ syncpackage --bug=1027775 --sponsor=logan python-pylibacl
  Traceback (most recent call last):
    File "/usr/bin/syncpackage", line 742, in <module>
      main()
    File "/usr/bin/syncpackage", line 642, in main
      Launchpad.login(**kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntutools/lp/lpapicache.py", line 66, in login
      version=api_version)
    File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 539, in login_with
      credential_save_failed, version)
    File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 342, in _authorize_token_and_login
      authorization_engine.unique_consumer_id)
    File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 282, in load
      return self.do_load(unique_key)
    File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 336, in do_load
      'launchpadlib', unique_key)
    File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 34, in get_password
      return _keyring_backend.get_password(service_name, username)
    File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 240, in get_password
      if wallet.keyDoesNotExist(network, 'Python', key):
  AttributeError: 'NoneType' object has no attribute 'keyDoesNotExist'

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: ubuntu-dev-tools 0.141
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic-pae 3.2.19
  Uname: Linux 3.2.0-26-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: i386
  Date: Mon Jul 23 07:45:57 2012
  EcryptfsInUse: Yes
  ExecutablePath: /usr/bin/syncpackage
  InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Beta i386 (20110330)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/syncpackage -s --bug=1027775 -s logan -f python-pylibacl
  ProcEnviron:
   SHELL=/bin/bash
   TERM=xterm
   LANG=en_US.UTF-8
   LANGUAGE=
  PythonArgs: ['/usr/bin/syncpackage', '-s', '--bug=1027775', '-s', 'logan', '-f', 'python-pylibacl']
  SourcePackage: ubuntu-dev-tools
  Title: syncpackage crashed with AttributeError in get_password(): 'NoneType' object has no attribute 'keyDoesNotExist'
  UpgradeStatus: Upgraded to precise on 2012-04-09 (104 days ago)
  UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare syslog wireshark

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-keyring/+bug/1027900/+subscriptions



More information about the foundations-bugs mailing list