You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I was trying your 1st example (Chapter 1, Helloworld), and I get the following message
Python 2.7.11 (default, Jan 22 2016, 16:30:50)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import helloworld
Fatal Python error: PyThreadState_Get: no current thread
fish: 'python' terminated by signal SIGABRT (Abort)
After some googling, I've discovered that the error comes from the fact that I am using, on my mac, several Python versions (one from Apple, and the others installed with the homebrew system, as described here for example)
The command otool -L helloworld.so returns
helloworld.so (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)
indicating that the helloworld.so was linked with the Python 2.7.5 (the original apple version), that is not the active version (Python 2.7.11, installed with homebrew).
Hi
I was trying your 1st example (Chapter 1, Helloworld), and I get the
following message
Python 2.7.11 (default, Jan 22 2016, 16:30:50)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import helloworld
Fatal Python error: PyThreadState_Get: no current thread
fish: 'python' terminated by signal SIGABRT (Abort)
After some googling, I've discovered that the error comes from the fact
that I am using, on my mac, several Python versions (one from Apple, and
the others installed with the homebrew system, as described here http://docs.python-guide.org/en/latest/starting/install/osx/ for
example)
The command otool -L helloworld.so returns
helloworld.so (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)
indicating that the helloworld.so was linked with the Python 2.7.5 (the
original apple version), that is not the active version (Python 2.7.11,
installed with homebrew).
Hi
I was trying your 1st example (Chapter 1,
Helloworld
), and I get the following messageAfter some googling, I've discovered that the error comes from the fact that I am using, on my mac, several Python versions (one from Apple, and the others installed with the
homebrew
system, as described here for example)The command
otool -L helloworld.so
returnsindicating that the
helloworld.so
was linked with the Python 2.7.5 (the original apple version), that is not the active version (Python 2.7.11, installed with homebrew).So, I changed a little bit the Makefile to
(
--ldflags
instead of--libs
) and everything is fine, now.The text was updated successfully, but these errors were encountered: