CerebusOSS/CereLink

Error when importing cbpy

Closed this issue · 5 comments

After building/installing successfully on Mac OS X, I'm unable to import cbpy within Python:

from CereLink import cbpy
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

Any ideas why this might be happening?

I have to check today, but do you use the Mac OSX defualt Python (or HomeBrew)?

homebrew installed version (2.7.6)

otool -L ../dist/lib64/cbpy.so 

It shows that it is linked to System Python instead of HomeBrew, even though cmake output is this:

Found Python executable: /usr/local/bin/python

I will need to look at cmake rules to see why it links to wrong Python.

I changed the cmake file to compile against the HomeBrew Python, even if it is compiled as framework. This fixed the problem on my system, but you should try on your own

Yes, I'm now able to import the cbpy module successfully. Thanks.