ReneVolution / profanity-omemo-plugin

A Python plugin to use (axolotl / Signal Protocol) encryption for the profanity XMPP messenger
GNU General Public License v3.0
64 stars 14 forks source link

Failed to load plugin: prof_omemo_plugin.py #20

Closed goblin closed 7 years ago

goblin commented 7 years ago

I'm on Profanity 0.5.1, Python 3.5.2, this plugin at the v0.1.1 tag. I've ran python setup.py install --force manually as root (because the user didn't have permission to write to /usr) and then the cp deploy/prof_omemo_plugin.py ~/.local/share/profanity/plugins/ manually as the user.

After trying to load the plugin, this is all I see in logs:

05/02/2017 23:19:31: prof: DBG: Input received: /plugins load prof_omemo_plugin.py
05/02/2017 23:19:31: prof: DBG: Initialised prof module
05/02/2017 23:19:31: prof: INF: Failed to load plugin: prof_omemo_plugin.py
ReneVolution commented 7 years ago

Can you please try the plugin in current master and see if it fixes anything? Looks like an issue with Python 3 to me.

goblin commented 7 years ago

Current master against Profanity 0.5.1 results in the same error.

I'm currently having issues compiling Profanity master (configure.ac:87: error: possibly undefined macro: AC_MSG_ERROR)

goblin commented 7 years ago

Here's the error when trying to run omemo master with Profanity 0.5.1 compiled with python 2.7.12:

06/02/2017 12:21:23: prof: INF: Failed to load plugin: prof_omemo_plugin.py
06/02/2017 12:21:23: stderr: ERR: Traceback (most recent call last):
06/02/2017 12:21:23: stderr: ERR:   File "/home/goblin/.local/share/profanity/plugins/prof_omemo_plugin.py", line 29, in <module>
06/02/2017 12:21:23: stderr: ERR:     import profanity_omemo_plugin.xmpp as xmpp
06/02/2017 12:21:23: stderr: ERR: ImportError: No module named profanity_omemo_plugin.xmpp

And omemo v0.1.1:

06/02/2017 12:23:20: stderr: ERR: Traceback (most recent call last):
06/02/2017 12:23:20: stderr: ERR:   File "/home/goblin/.local/share/profanity/plugins/prof_omemo_plugin.py", line 26, in <module>
06/02/2017 12:23:20: stderr: ERR:     import profanity_omemo_plugin.xmpp as xmpp
06/02/2017 12:23:20: stderr: ERR: ImportError: No module named profanity_omemo_plugin.xmpp

EDIT: gah, the plugin was still using python3.5, I need to install it differently, one sec

goblin commented 7 years ago

Right, yeah, it works OK with Python 2.7.12, so your guess was right :-) Thanks

(I installed with python2.7 setup.py install --force as root)

ReneVolution commented 7 years ago

Ok, great. I guess the ticket can be closed then. Feel free to reopen if not.