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

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

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>
    devscripts.ec2test.entrypoint.main()
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/entrypoint.py", line 45, in main
    controller.run(args)
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/controller.py", line 145, in run
    run_bzr(argv)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/commands.py", 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/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/commands.py", 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/cleanup.py", 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/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/ec2test/builtins.py", line 406, in run
    lander = LaunchpadBranchLander.load()
  File "/home/bryce/launchpad/lp-branches/bugtracker-components-comments/lib/devscripts/autoland.py", line 35, in load
    launchpad = Launchpad.login_with(cls.name, service_root)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/launchpadlib-1.9.3-py2.6.egg/launchpadlib/launchpad.py", line 517, in login_with
    authorization_engine.unique_consumer_id)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/launchpadlib-1.9.3-py2.6.egg/launchpadlib/credentials.py", 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/credentials.py", line 320, in do_load
    'launchpadlib', unique_key)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/keyring-0.5.1-py2.6.egg/keyring/core.py", 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/backend.py", line 139, in get_password
    items = gnomekeyring.find_network_password_sync(username, service)
gnomekeyring.IOError

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