azlux / botamusique

Bot to play youtube / soundcloud / radio / local music on Mumble (using pymumble).
MIT License
312 stars 79 forks source link

Bot does not start: AttributeError: 'Authenticate' object has no attribute 'client_type' #357

Closed fuck-shithub closed 1 year ago

fuck-shithub commented 1 year ago

Describe the bug Bot won't start

Affected version bf321cfda41809d93de43b03737271f8a2050766

To Reproduce Steps to reproduce the behavior:

  1. python3 -m venv venv
  2. venv/bin/pip install wheel
  3. venv/bin/pip install -r requirements.txt
  4. ./venv/bin/python mumbleBot.py

Expected behavior The bot starts

Log

[Mar 12 15:04:11 INFO] library: rebuild directory cache
[Mar 12 15:04:11 INFO] library: rebuild directory cache
[Mar 12 15:04:11 INFO] bot: botamusique version 7.2.2-46-gbf321cf, starting...
[Mar 12 15:04:11 INFO] bot: botamusique version 7.2.2-46-gbf321cf, starting...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/var/lib/botamusique/botamusique/venv/lib/python3.10/site-packages/pymumble_py3/mumble.py", line 130, in run
    if self.connect() >= PYMUMBLE_CONN_STATE_FAILED:  # some error occurred, exit here
  File "/var/lib/botamusique/botamusique/venv/lib/python3.10/site-packages/pymumble_py3/mumble.py", line 190, in connect
    authenticate.client_type = self.client_type
AttributeError: 'Authenticate' object has no attribute 'client_type'

Server (please complete the following information):

elch01 commented 1 year ago

Same behavior here, recently migrated my murmur installation and the bot broke on re-installation.

elch01 commented 1 year ago

got it to work with python3 mumbleBot.py -s HOST -u BOTNAME -P PASSWORD -p PORT -c CHANNEL -C /path/to/botamusique.pem Edit: it broke again. Yes i have a password.

azlux commented 1 year ago

Do you have a server password ?

fuck-shithub commented 1 year ago

No I don't have a server password.

azlux commented 1 year ago

find the issue, is the new release of pymumble producing the problem

azlux commented 1 year ago

I've delete the version (of pymumble) because I forgot to recompile the protobuff file descriptor. If you remove your image (docker) or pip lib (pymumble), then re-run it again, this should be fix, or way tomorrow (I hope) , I will fix pymumble

fuck-shithub commented 1 year ago

It doesn't run at all if I remove venv/lib/python3.10/site-packages/pymumble_py3/. I don't know what you mean with remove pip lib. Doing venv/bin/pip uninstall pymumble also breaks it completely.

azlux commented 1 year ago

yes, uninstall pymumble, then install it again with pip install pymumble

fuck-shithub commented 1 year ago

Thanks, that worked