wangwei created SINGA-293:
-----------------------------
Summary: Bug from compiling PySINGA on Mac OS X with multiple
version of Python
Key: SINGA-293
URL: https://issues.apache.org/jira/browse/SINGA-293
Project: Singa
Issue Type: Bug
Reporter: wangwei
Assignee: wangwei
When I run PySINGA in Mac OS X, I got the error "Fatal Python error:
PyThreadState_Get: no current thread Abort trap: 6"
This error happens typically when I have multiple version of Python on your
system, e.g, the one comes with the OS and the one installed by Homebrew. The
Python linked by PySINGA must be the same as the Python interpreter.
To fix this error, we must compile SINGA with the correct version of Python.
In particular, if we build PySINGA from source, we need to specify the paths
when invoking
[cmake|http://stackoverflow.com/questions/15291500/i-have-2-versions-of-python-installed-but-cmake-is-using-older-version-how-do]
{code}
$ cmake -DPYTHON_LIBRARY=`python-config --prefix`/lib/libpython2.7.dylib
-DPYTHON_INCLUDE_DIR=`python-config --prefix`/include/python2.7/ ..
{code}
If installed PySINGA from binary packages, e.g. debian or wheel, then we need
to change the python interpreter, e.g., reset the $PATH to put the correct path
of Python at the front position.
The above solution is added to the FAQ of installation. The jenkins_wheel.sh is
also updated to fix this bug.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)