Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodecNotSupportedError #128

Open
mackenziexD opened this issue Feb 25, 2023 · 1 comment
Open

CodecNotSupportedError #128

mackenziexD opened this issue Feb 25, 2023 · 1 comment

Comments

@mackenziexD
Copy link

trying to connect a bot to mumble but getting pymumble_py3.errors.CodecNotSupportedError: anyone got any ideas why its throwing out this error? its been fine for a while and only started to notice it.

debug for when a client wont connect

2023-02-24 17:32:46,240-PyMumble-DEBUG-sending message
2023-02-24 17:32:46,240-PyMumble-DEBUG-0
2023-02-24 17:32:46,240-PyMumble-DEBUG-read control connection
2023-02-24 17:32:46,240-PyMumble-DEBUG-dispatch control message
2023-02-24 17:32:46,240-PyMumble-DEBUG-message: CodecVersion : alpha: -2147483637
beta: 0
prefer_alpha: true
opus: false

debug for when it connests

2023-02-24 17:37:43,668-PyMumble-DEBUG-sending message
2023-02-24 17:37:43,668-PyMumble-DEBUG-0
2023-02-24 17:37:43,668-PyMumble-DEBUG-read control connection
2023-02-24 17:37:43,668-PyMumble-DEBUG-dispatch control message
2023-02-24 17:37:43,668-PyMumble-DEBUG-message: CodecVersion : alpha: -2147483637
beta: -2147483632
prefer_alpha: true
opus: true

full traceback

  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/mumble.py", line 134, in run
    self.loop()
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/mumble.py", line 219, in loop
    self.read_control_messages()
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/mumble.py", line 293, in read_control_messages
    self.dispatch_control_message(type, message)
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/mumble.py", line 435, in dispatch_control_message
    self.sound_output.set_default_codec(mess)
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/soundoutput.py", line 185, in set_default_codec
    self.create_encoder()
  File "/usr/local/lib/python3.10/dist-packages/pymumble_py3/soundoutput.py", line 197, in create_encoder
    raise CodecNotSupportedError('')
pymumble_py3.errors.CodecNotSupportedError: 

i ended up posting a issue on main mumble repo by accident and someone did say I can only tell you that we have removed support for the CELT codec in 1.5 as virtually every client in existence should be using Opus by now.

@azlux
Copy link
Owner

azlux commented Feb 27, 2023

Into you debug mesage you can see:

message: CodecVersion [...] opus: false

That is what the server is sending. Since pymumble only support opus, when the server try to send a no opus sound, you will get this error.
Do you have a recent server ? And more important, you maybe have a client (maybe a old one) making the server fallback to CELT.

On the GUI, you can right click on people to see the one making this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants