errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.12k stars 614 forks source link

"unexpected keyword argument 'wait'" when connecting to a XMPP MUC #1506

Closed raspbeguy closed 3 years ago

raspbeguy commented 3 years ago

I am...

I am running...

Issue description

Unable to join a rooms, seems to be a syntax issue, maybe related to migration to slixmpp. Here is the backtrace:

2021-02-18 16:06:20,864 ERROR    errbot.plugins.ChatRoom   Joining room 'hashtagueule@conference.gugod.fr' failed
Traceback (most recent call last):
  File "/opt/bot/venv/lib/python3.7/site-packages/errbot/core_plugins/chatRoom.py", line 20, in callback_connect
    self._join_room(room)
  File "/opt/bot/venv/lib/python3.7/site-packages/errbot/core_plugins/chatRoom.py", line 37, in _join_room
    username=self.bot_config.CHATROOM_FN, password=password
  File "/opt/bot/venv/lib/python3.7/site-packages/errbot/backends/xmpp.py", line 136, in join
    self.xep0045.join_muc(room, username, password=password, wait=True)
TypeError: join_muc() got an unexpected keyword argument 'wait'

When I edit xmpp.py and remove this argument wait, it works.

Steps to reproduce

Just set up a new bot with a XMPP backend.

nzlosh commented 3 years ago

The underlying Python module was switched from sleekxmpp to slixmpp in mid-2020. It's possible the join_muc signature was overlooked during that work. If the fix works, a PR would be most welcome.

raspbeguy commented 3 years ago

fixed by #1507