Elektordi / obs-websocket-py

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

Getting KeyError: 'status' while trying to connect to OBS studio #81

Closed Tirumala7 closed 1 year ago

Tirumala7 commented 1 year ago

when we call ws.connect() function i am getting below issue INFO:obswebsocket.core:Connecting... INFO:obswebsocket.core:Connected! Traceback (most recent call last): File "C:\Users\Projects\OBSStudio\scripts\obsEvents.py", line 27, in <module> ws.connect() File "C:\Users\Projects\OBSStudio\scripts\venv\lib\site-packages\obswebsocket\core.py", line 70, in connect self._auth(self.password) File "C:\Users\Projects\OBSStudio\scripts\venv\lib\site-packages\obswebsocket\core.py", line 116, in _auth if result['status'] != 'ok': KeyError: 'status'

iarspider commented 1 year ago

This packages is not (yet) compatible with obs-websocket 5.x (the one that is built into OBS v28+). You need to download and install obs-websocket 4.9.1-compat.

Elektordi commented 1 year ago

Duplicate of issue #77 . @iarspider is right, the compat version should help you. The next version of this package will support v5, but I'm still not sure when it will be released...