Bug 556879

Summary: gnomekeyring module isn't working
Product: [Fedora] Fedora Reporter: Tom "spot" Callaway <tcallawa>
Component: gnome-python2-desktopAssignee: Matthew Barnes <mbarnes>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: awilliam, mbarnes
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-26 04:15:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom "spot" Callaway 2010-01-19 17:18:28 UTC
Description of problem:

I was attempting to debug why gnomekeyring kept throwing errors in some code I was working with, so I went back to the basics to understand how it worked. I looked at gnome-python-desktop-2.29.1/examples/keyring.py, which seems to match up to the code I had, but when I tried to execute it, it fails in the same way:

[spot@pterodactyl examples]$ ./keyring.py 
Traceback (most recent call last):
  File "./keyring.py", line 94, in <module>
    login, password = get_login_password()
  File "./keyring.py", line 87, in get_login_password
    "\n".join((login, password)), True)
gnomekeyring.BadArgumentsError

Version-Release number of selected component (if applicable):

gnome-keyring-2.29.5-1.fc13.x86_64
gnome-python2-gnomekeyring-2.29.1-3.fc13.x86_64

How reproducible:

Everytime

Steps to Reproduce:
1. Run gnome-python-desktop-2.29.1/examples/keyring.py
2. In the gtk box that opens, input a login and password (the data is irrelevant)
3. Watch it crash on the console.
  
Actual results:

Crash.

Expected results:
"login: %s; password: %s" printed to console

Comment 1 Matthew Barnes 2010-01-19 20:21:33 UTC
Interesting, it appears to work fine on Fedora 12.
Need to find a Rawhide machine to debug this...

Comment 2 Matthew Barnes 2010-01-20 16:48:06 UTC
Finally found a Rawhide machine to debug this, but I'm not even getting as far as you:

  $ ./keyring.py
  Traceback (most recent call last):
    File "./keyring.py", line 94, in <module>
      login, password = get_login_password()
    File "./keyring.py", line 18, in get_login_password
      keyring = gnomekeyring.get_default_keyring_sync()
  gnomekeyring.IOError

Smells like a D-Bus issue to me.

I'm told gnome-keyring is kind of broken right now anyway since the libgnome-keyring split in 2.29.4, and I don't know if that involved any API changes.  May just need to wait for the keyring to be fixed and/or updated bindings.

Comment 3 Matthew Barnes 2010-01-26 04:15:21 UTC
Closing this as a duplicate of bug #558678 since it looks like the issue is in gnome-keyring itself, not the Python bindings.

*** This bug has been marked as a duplicate of bug 558678 ***

Comment 4 Adam Williamson 2010-01-26 07:54:20 UTC
ah. I *did* look for dupes, but not filed against other components :/ sorry.