Bug Report Python scripting don't work on OBS 22.0.3

andv

New Member
Is python scripts currently supported in the latest version of OBS (22.0.3) on macOS? I'm trying to load a script, but unable to get any output in console. I've tried setting python path to /usr/local/Cellar/python/3.6.5 but nothing have changed, still no output.
 
Last edited:

andv

New Member
According to logs, it's trying to find libpython3.6m.dylib which i've located at /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib, but once i select this path OBS crashes with "RETURNING UnknownFS PLACEHOLDER: <private>" in console.app and nothing interesting in logs
 

andv

New Member
Also it crashes without any crashlog (no prompt and nothing in ~/Library/Logs/DiagnosticReports/)
 

andv

New Member
Also, there is nothing in obs crashes directory (~/Library/Application Support/obs-studio/crashes/)
 

andv

New Member
Same result with the python from the official site (/Library/Frameworks/Python.framework/Versions/3.6/lib - that path)
 

andv

New Member
Versions i've tried:
3.6.3 3.6.5 - from homebrew
3.6.4 3.6.8 - from the official python macos packages
 

andv

New Member
Changed python path via global.ini and was able to grab these lines from the log:

01:52:20.494: [Python] Python failure in obs_scripting_load_python:1675:
01:52:20.494: [Python] Error importing obspython.py', unloading obs-python
01:52:20.494: [Python] Failed to load python plugin
 

Rodney

Forum Moderator
Python scripting has never been officially supported on mac since we couldn't get it to work (also issues with the buildserver I believe). Doesn't appear that anybody has figured out why it didn't work or fixed it.
 

andv

New Member
Python scripting has never been officially supported on mac since we couldn't get it to work (also issues with the buildserver I believe). Doesn't appear that anybody has figured out why it didn't work or fixed it.
Actually, after some hours of researching i was able to get it to work on my own machine, by modifying some stuff inside of OSU.app, but unfortunately I'm not familiar with C++ and OBS source structure itself to make my findings into a pull request.
 

genga

New Member
Actually, after some hours of researching i was able to get it to work on my own machine, by modifying some stuff inside of OSU.app, but unfortunately I'm not familiar with C++ and OBS source structure itself to make my findings into a pull request.

can you remember what you did to make it work? Running obs 23.2.1 I'm getting the following error when I try to link to my homebrew-installed 3.6.5_1 at /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/:

Code:
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

(same issue as https://obsproject.com/forum/threads/fatal-python-error-crash-on-startup.99516/)
 
Top