Everything related to SDK.
Found a fix for this little PyThreadState_Get problem on OSX using install_name_tool (which I think comes bundled with xcode)

1) Use otool to inspect existing links:
$ otool -L /Users/dave/Desktop/pymaxwell/python2.7/_pymaxwell.so

/usr/local/lib/_pymaxwell.so (compatibility version 1.0.0, current version 1.0.0)
/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) <---- this is the python path we want to edit
/usr/lib/libz.1.dylib (compatibili....

2) Change the linked python path using install_name_tool:
$ install_name_tool -change /system/python/path /your/python/path _pymaxwell.so

For example if this is the path to homebrew python: /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Python

$ install_name_tool -change /Library/Frameworks/Python.framework/Versions/2.7/Python /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Python /Users/dave/Desktop/pymaxwell/python2.7/_pymaxwell.so

3) Use otool -L again to verify the change

4) Test import pymaxwell in the homebrew python console.
import sys
import pymaxwell

If it's worked you won't get a PyThreadState_Get error. Phew. :)
User avatar
By Brany
It seems to be the best way to solve this, thanks!

Just add that in order to preserve the original _pymaxwell.so, users should use a copy of the one delivered with the installer so you can edit it with install_name_tool safely.

I guess the path you get from here is the one to use, am I right? (running the python you will use to load pymaxwell, of course)
Code: Select all
import sys
print sys.executable

Hello, in our office we are already using Rhino m[…]

Hello! We have just released a new version of the[…]

Let's talk about Maxwell 5.2

I have to say, as I've mentioned before, getting 1[…]

New podcast - CG Talks

Hi guys! We've just finished the first season of […]