errbot icon indicating copy to clipboard operation
errbot copied to clipboard

SleekXMPP 1.2.0 breaks Err

Open apophys opened this issue 12 years ago • 3 comments

After an update of SleekXMPP the xmpp backend breaks. The 1.2.0 version was released few days ago. The old_0004 plugin has been removed.

INFO:root:init plugin manager
INFO:root:Config check passed...
INFO:root:Checking for '/tmp/err'...
INFO:root:Try to open db file /tmp/err/core.db
ERROR:sleekxmpp.plugins.base:Unable to load plugin: old_0004
Traceback (most recent call last):
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/plugins/base.py", line 86, in load_plugin
    __import__(module)
ImportError: No module named 'sleekxmpp.plugins.old_0004'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/plugins/base.py", line 90, in load_plugin
    __import__(module)
ImportError: No module named 'sleekxmpp.features.old_0004'
ERROR:sleekxmpp.plugins.base:Unable to load plugin: old_0004
Traceback (most recent call last):
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/plugins/base.py", line 86, in load_plugin
    __import__(module)
ImportError: No module named 'sleekxmpp.plugins.old_0004'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/plugins/base.py", line 90, in load_plugin
    __import__(module)
ImportError: No module named 'sleekxmpp.features.old_0004'
Traceback (most recent call last):
  File "/Users/milan/.virtualenvs/err-py33/bin/err.py", line 5, in <module>
    pkg_resources.run_script('err==2.0.0', 'err.py')
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/pkg_resources.py", line 488, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/pkg_resources.py", line 1338, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/pkg_resources.py", line 55, in execfile
    exec(compile(open(fn).read(), fn, 'exec'), globs, locs)
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/err-2.0.0-py3.3.egg/EGG-INFO/scripts/err.py", line 191, in <module>
    main(bot_class, logger)
  File "/Users/milan/prog/python/err/errbot/main.py", line 38, in main
    holder.bot = bot_class(**BOT_IDENTITY)
  File "/Users/milan/prog/python/err/errbot/backends/xmpp.py", line 150, in __init__
    self.conn = self.create_connection()
  File "/Users/milan/prog/python/err/errbot/backends/xmpp.py", line 156, in create_connection
    return XMPPConnection(self.jid, self.password)
  File "/Users/milan/prog/python/err/errbot/backends/xmpp.py", line 81, in __init__
    self.client.register_plugin('old_0004')  # Multi-User Chat backward compability (necessary for join room)
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/basexmpp.py", line 265, in register_plugin
    self.plugin.enable(plugin, pconfig)
  File "/Users/milan/.virtualenvs/err-py33/lib/python3.3/site-packages/sleekxmpp/plugins/base.py", line 162, in enable
    raise PluginNotFound(name)
sleekxmpp.plugins.base.PluginNotFound: old_0004

apophys avatar Feb 09 '14 15:02 apophys

Indeed, we have already 2 different issues about it... They have changed stuff related to the MUCs. I might not have the time to look at it quickly enough, Do you mind giving it a shot ? Thx.

gbin avatar Feb 10 '14 18:02 gbin

Sure, I will look at it when I come home.

apophys avatar Feb 10 '14 18:02 apophys

Fixed by #236.

zoni avatar Feb 22 '14 11:02 zoni