0

I am trying to unlock one keyring using the library gnomekeyring in python.

I have written my script, but it throws me the error gnomekeyring.IOError. However, if I run python at the terminal and write each line of code, I get the expected result.

The code is:

#!/usr/bin/python

import gnomekeyring as gk
dk = gk.get_default_keyring_sync()
gk.lock_all_sync()
gk.unlock_sync(dk, 'my_pass')

At terminal I don't write #!/usr/bin/python, but with the rest of lines unlock the default keyring.

I am new with Linux (Mint 18), and I am a bit lost with the terminal. Any help will be appreciated!

closed as off-topic by countermode, Satō Katsura, techraf, Eric Renouf, Stephen Kitt Nov 24 '16 at 12:03

  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

locked by Community Nov 24 '16 at 12:03