I can't get OBS to connect via websocket using a Python script

1 week ago 16
ARTICLE AD BOX

I am getting the error: No connection could be made because the target machine actively refused it

Here is my obs websocket settings:

obs websocket settings

import obsws_python as obs from subprocess import call from os import chdir import time OBS_Path = "C:\\Program Files\\obs-studio\\bin\\64bit\\" # launch OBS chdir(OBS_Path) call(['obs64.exe']) time.sleep(5) client = obs.ReqClient(host='localhost', port=4455, password="", timeout=3) obs_version = client.get_version() print(f"OBS version: {obs_version.version}") client.set_current_program_scene("clip paint") client.start_record() client.disconnect() exit()
Read Entire Article