Bug 556879 - gnomekeyring module isn't working
Summary: gnomekeyring module isn't working
Keywords:
Status: CLOSED DUPLICATE of bug 558678
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-python2-desktop
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 17:18 UTC by Tom "spot" Callaway
Modified: 2010-01-26 07:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-26 04:15:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.