ec2 land generates gnomekeyring.IOError if run over an ssh session

Bug #796873 reported by Bryce Harrington on 2011-06-13
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Python Keyring

Bug Description

1. ssh session into another box where I work on a launchpad branch
2. after getting branch approved, attempted to do 'utilities/ec2 land'
3. received error listed below
4. local log into the machine and running 'utilities/ec2 land' from inside an X session did not show the error - popped up firefox for credentials authorization

Guessing something to do with launchpadlib, as I've seen a similarish error running other people's launchpadlib scripts.

lynmouth:~/launchpad/lp-branches/bugtracker-components-comments$ utilities/ec2 land
Traceback (most recent call last):
  File "utilities/ec2", line 26, in <module>
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/", line 45, in main
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/", line 145, in run
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/", line 691, in run_argv_aliases
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/", line 406, in run
    lander = LaunchpadBranchLander.load()
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/", line 35, in load
    launchpad = Launchpad.login_with(, service_root)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/launchpadlib-1.9.3-py2.6.egg/launchpadlib/", line 517, in login_with
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/launchpadlib-1.9.3-py2.6.egg/launchpadlib/", line 273, in load
    return self.do_load(unique_key)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/launchpadlib-1.9.3-py2.6.egg/launchpadlib/", line 320, in do_load
    'launchpadlib', unique_key)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/keyring-0.5.1-py2.6.egg/keyring/", line 30, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/keyring-0.5.1-py2.6.egg/keyring/", line 139, in get_password
    items = gnomekeyring.find_network_password_sync(username, service)

affects: launchpad → launchpadlib
Aaron Bentley (abentley) on 2011-06-14
affects: launchpadlib → python-keyring
Martin Pool (mbp) wrote :

In Bazaar we ended up fixing this by absorbing the error from the keyring, so it's probably reasonable to say this should be done in lplib too.

Perhaps python-keyring shouldn't emit that error. istr that looked hard to change.

Aaron Bentley (abentley) on 2011-06-15
Changed in launchpadlib:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers