ismslv / obs-scripts

4 stars 2 forks source link

obsstudio_sdk not a module error #2

Open iMonsterful opened 1 year ago

iMonsterful commented 1 year ago

I installed everything needed but if i load the script into OBS there is always the same error: ModuleNotFoundError: No module named 'obsstudio_sdk'.

ismslv commented 1 year ago

@iMonsterful they've renamed obsstudio-sdk to obsws-python. I'll update the script. You should do:

  1. pip install obsws-python
  2. replace import obsstudio_sdk as obs with import obsws_python as obs
iMonsterful commented 1 year ago

Thanks for the quick help. Now it works. For some reason its now useing much more cpu even in idle (disabling the webserver helps reducing it back to normal) and if i close OBS it pops up in task-manager the second after and stays open without an actual window.

ismslv commented 1 year ago

@iMonsterful

For some reason its now useing much more cpu even in idle (disabling the webserver helps reducing it back to normal) and if i close OBS it pops up in task-manager the second after and stays open without an actual window.

I rewrote script to use obspython instead of websocket. Now it will work only inside OBS, but it solves these problems.

pip install unicodedata easygui pyautogui if there are problems with modules

OBS > Scripts > Parameters to configure