Elektordi / obs-websocket-py

Python library to communicate with an obs-websocket server (for OBS Studio)
MIT License
235 stars 59 forks source link

Not able to connect to the websocket #73

Closed auoldariu69 closed 2 years ago

auoldariu69 commented 2 years ago

When trying to connect to my websocket, using the switch_scene.py sample im getting this error:

INFO:obswebsocket.core:Connecting... INFO:obswebsocket.core:Connected! Traceback (most recent call last): File "c:\Users\.\development\testing\python\obspython\main.py", line 19, in <module> ws.connect() File "C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\obswebsocket\core.py", line 70, in connect self._auth(self.password) File "C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\obswebsocket\core.py", line 116, in _auth if result['status'] != 'ok': KeyError: 'status'

this is my obs-websocket settings page: image

thanks in advance

abrasher commented 2 years ago

I had the same issue. You have obs-websocket 5.0.0 installed and this library is not updated to that version yet. Downgrade to obs-websocket 4.9.1

auoldariu69 commented 2 years ago

I had the same issue. You have obs-websocket 5.0.0 installed and this library is not updated to that version yet. Downgrade to obs-websocket 4.9.1

obs-websocket 5.0.0 doesn't exist

edit: oh nvm, tryed reinstalling it and it works, thank you :D