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

Adam Stokes adam.stokes at canonical.com
Mon Feb 25 21:03:59 UTC 2013


The easiest way I can reproduce this is running KDE4, killing kwalletd,
and attempting to access launchpadlib:

(18967)/kdeui (Wallet): The kwalletd service has been disabled 
(18967)/kdeui (Wallet): The kwalletd service has been disabled 
(18967)/kdeui (Wallet): The kwalletd service has been disabled 
(18967)/kdeui (Wallet): The kwalletd service has been disabled 
(18967)/kdeui (Wallet): The kwalletd service has been disabled 
(18967)/kdeui (Wallet): The kwalletd service has been disabled 
Traceback (most recent call last):
  File "./bin/shadow-db", line 77, in <module>
    app = Application()
  File "./bin/shadow-db", line 42, in __init__
    self.lp = LP(self.logger, self.args)
  File "/usr/lib/python2.7/dist-packages/ShadowDatabase/lp.py", line 50, in __init__
    max_failed_attempts=self.retry)
  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 305, in load
    return self.do_load(unique_key)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 359, in do_load
    'launchpadlib', unique_key)
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 37, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 301, in get_password
    if wallet.keyDoesNotExist(network, 'Python', key):
AttributeError: 'NoneType' object has no attribute 'keyDoesNotExist'


Note that gnome-keyring is running

~/.kde/share/apps » ps -ef |grep keyring
zef       3148     1  0 12:59 ?        00:00:00 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets

But it won't fallback to that either.

-- 
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:
  Confirmed
Status in “ubuntu-dev-tools” package in Ubuntu:
  Confirmed

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