can not use lptools when ssh'ed into a system

Bug #1008734 reported by Brian Murray
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
launchpadlib
Triaged
Low
Unassigned

Bug Description

I'd like to be able to use lptools on another system to which I am connected via ssh. This fails for me:

14:12:29 - flash:[/tmp] lp-grab-attachments 991792
Gkr-Message: couldn't connect to dbus session bus: Failed to connect to socket /tmp/dbus-4jE8zT2C7a: Connection refused
Traceback (most recent call last):
  File "/usr/bin/lp-grab-attachments", line 106, in <module>
    main()
  File "/usr/bin/lp-grab-attachments", line 70, in main
    launchpad = config.get_launchpad("grab-attachments")
  File "/usr/lib/python2.7/dist-packages/lptools/config.py", line 53, in get_launchpad
    return Launchpad.login_with("lptools-%s" % appname, instance)
  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 154, in get_password
    items = gnomekeyring.find_network_password_sync(username, service)
gnomekeyring.IOError

Jelmer Vernooij (jelmer)
affects: lptools → launchpadlib
Curtis Hovey (sinzui)
Changed in launchpadlib:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

When I use launchpadlib for sync bug descriptions on different projects I can see the same error on my VM (with user via ssh).

and realy, I can't find workaround for this issue (only run my scripts like services from the desktop user session)
Looks like we can implement other login methods (or create specific users for auto-scripts), which will allow to work with launchpad API without oAuth.

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.