Requesting a new account at every start

Bug #1014165 reported by Thomas Barandon
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Polly
Invalid
Undecided
Unassigned

Bug Description

Hi,

I'm trying to make a Debian dedicated package, polly is requested in Debian repository (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668869 ).

Making polly and making the .deb was effortless.

But Polly is acting strangely: At every start i need to add my account and redo the authorization process.

Starting Polly:

thom@Bellum:~$ polly
Polly 0.93.4 (pre-alpha 3.4)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/thom/.cache/polly
config path: /home/thom/.config/polly
data home: /home/thom/.local/share/polly
initializing... done

After that i have the assistant.

No more information on debug but its maybe related to python keyring function because of that:
After the OAuth process the console show this:

Please input your password for the keyringDEBUG: anapivirtua connected successfully

If i don't do anything i have a blank screen or a freezing assistant on the client...
After entering my keyring password no more problems but when i quit the app and restart it i have to redo the account setup.

To summarize:
1 - if i don't use the console to lunch polly i can't use it
2 - at every start i need to redo the account setup

Have you encountered the problem ?

Thanks

Revision history for this message
Thomas Barandon (anapivirtua) wrote :

I have this traceback too:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 39, in set_password
    _keyring_backend.set_password(service_name, username, password)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 316, in set_password
    password_encrypted = self.encrypt(password.encode('utf-8'))
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 456, in encrypt
    crypter = self._init_crypter()
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 451, in _init_crypter
    return AES.new(password, AES.MODE_CFB)
  File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 94, in new
    return AESCipher(key, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 59, in __init__
    blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 141, in __init__
    self._cipher = factory.new(key, *args, **kwargs)
ValueError: IV must be 16 bytes long
DEBUG: ASSISTANT DELETED

Revision history for this message
Thomas Barandon (anapivirtua) wrote :

And leaving the client:

DEBUG: anapivirtua disconnected successfully
finalizing... DEBUG: STREAM DELETED
DEBUG: STREAM DELETED
DEBUG: ACCOUNT DELETED
done
clearing... done
Thank you for using Polly!
To contribute please visit https://launchpad.net/polly.

Revision history for this message
Thomas Barandon (anapivirtua) wrote :

Using python-gnomekeyring >2.32 fix the problem

Changed in polly:
status: New → Invalid
Revision history for this message
Robert (robert-wenner) wrote :

This dependency should be in the .deb / .rpm / .apt file. After all, why would I install something gnome when I am using xfce?

Revision history for this message
Robert (robert-wenner) wrote :

Reopening to address dependencies in the package.

Changed in polly:
status: Invalid → New
Revision history for this message
Conscious User (conscioususer) wrote :

The keyring backend is going to change for 0.94, so I'm closing this again.

Changed in polly:
status: New → Invalid
Revision history for this message
Dirk Willrodt (dwillrodt) wrote :

I have the same problem on a current Xubuntu running awesomeWM:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 42, in set_password
    _keyring_backend.set_password(service_name, username, password)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 234, in set_password
    True)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection

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.