python-otr/pure-python-otr

Traceback from gotr plugin

weisslj opened this issue · 2 comments

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

Sorry, I forgot I hadn't handled that issue yet. It should now be fixed in 927122d.

It seems to work, thanks for the quick patches!