DSAKey problems / exceptions #4

Closed
weisslj opened this Issue Mar 8, 2012 · 6 comments

Comments

Projects
None yet
2 participants

weisslj commented Mar 8, 2012

Hi,

if I hit the button "Generate" in the gajim OTR plugin I get the following traceback:

  File "/home/weisslj/.local/share/gajim/plugins/gotr/ui.py", line 186, in regenerate_button_clicked_cb
    self.plugin.us[account].getPrivkey(autogen=True)
  File "/home/weisslj/.local/lib/python2.7/site-packages/potr/context.py", line 445, in getPrivkey
    self.privkey = crypt.DSAKey.generate()
AttributeError: 'module' object has no attribute 'DSAKey'

If I import DSAKey from potr.compatcrypto in potr/crypt.py, I get this error:
TypeError: wrong number of arguments for private=False: got 5

Do I miss any dependencies? I have python-crypto 2.5 from Debian Sid.

Contributor

afflux commented Mar 8, 2012

I changed the API in the last few commits and haven't come down to updating the gajim plugin yet.
For now, use the code from revision 4e2d28d97e

weisslj commented Mar 8, 2012

Thanks, it works with that revision! Just close the issue when the plugin is updated, so I know when to switch to master again...

Contributor

afflux commented Mar 8, 2012

Just realized that it actually was not a problem with gajim-otr. I've pushed some changes which should fix this specific problem, though I couldn't test them yet and there may be further issues. Will follow up tomorrow.

afflux was assigned Mar 8, 2012

Contributor

afflux commented Mar 10, 2012

Try the current master branch (tag 1.0.0beta4). It worked quite well in my tests.

afflux closed this Mar 10, 2012

weisslj commented Mar 10, 2012

Thanks! It doesn't give any of the errors above, but when I hit "Configure" in the plugin options, I get this traceback:

Traceback (most recent call last):
  File "/usr/share/gajim/src/plugins/helpers.py", line 114, in wrapper
    result = f(*args, **kwargs)
  File "/usr/share/gajim/src/plugins/gui.py", line 187, in on_configure_plugin_button_clicked
    result = plugin.config_dialog.run(self.window)
  File "/usr/share/gajim/src/plugins/helpers.py", line 114, in wrapper
    result = f(*args, **kwargs)
  File "/usr/share/gajim/src/plugins/gui.py", line 278, in run
    self.on_run()
  File "/home/weisslj/.local/share/gajim/plugins/gotr/ui.py", line 70, in on_run
    self.account_combobox_changed_cb(self.B.get_object('account_combobox'))
  File "/home/weisslj/.local/share/gajim/plugins/gotr/ui.py", line 109, in account_combobox_changed_cb
    fpr = str(self.plugin.us[account].getPrivkey(autogen=False))
  File "/home/weisslj/.local/lib/python2.7/site-packages/potr/context.py", line 442, in getPrivkey
    self.privkey = self.loadPrivkey()
  File "/home/weisslj/.local/share/gajim/plugins/gotr/otrmodule.py", line 162, in loadPrivkey
    return potr.crypt.PK.parsePrivateKey(keyFile.read())[0]
  File "/home/weisslj/.local/lib/python2.7/site-packages/potr/compatcrypto/common.py", line 82, in parsePrivateKey
    implCls, data = cls.getImplementation(data)
  File "/home/weisslj/.local/lib/python2.7/site-packages/potr/compatcrypto/common.py", line 103, in getImplementation
    raise NotImplementedError('unknown typeid %r' % typeid)
NotImplementedError: unknown typeid 25443

weisslj commented Mar 10, 2012

I opened a new issue #5 for this, as it is a different error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment