Fatal Python error on importing fusionscript.so

I'm having an issue importing fusionscript.so on High Sierra with Anaconda Python 2.7.15. The 'path' contains the valid path to the MacOS location of fusionscript.so:
It throws:
I suspect this has to do with multiple Python interpreters on the host. In fact, if I disable the Anaconda Python and use the stock 2.7.10 Python that came installed with High Sierra, I can import fusionscript.so and the Resolve scripting API is fully operational.
Prior to installing the Anaconda version, I used Brew to install Python and faced the same issue.
If there is anyone who has (Python) scripting working on a Mac, I'd love to learn how exactly they installed Python.
- Code: Select all
script_module = imp.load_dynamic("fusionscript", path + "fusionscript.so"
It throws:
- Code: Select all
Fatal Python error: PyhreadState_Get: no current thread
Abort trap: 6
I suspect this has to do with multiple Python interpreters on the host. In fact, if I disable the Anaconda Python and use the stock 2.7.10 Python that came installed with High Sierra, I can import fusionscript.so and the Resolve scripting API is fully operational.
Prior to installing the Anaconda version, I used Brew to install Python and faced the same issue.
If there is anyone who has (Python) scripting working on a Mac, I'd love to learn how exactly they installed Python.