Seems that at run time the python library from the system is loaded instead of
the python library from anaconda.
otool -L _rapi.so
Does this work:
DYLD_LIBRARY_PATH=`python-config --prefix`/lib python -c 'import rapi'
There are compiler/linker options to set the path of the python library to be
loaded at run time, but I'm not sure what are the best pratices.
Quoting brainstorm (2014-08-24 09:18:02)
--> While the fix does work for the barebones SWIG repository example, the same
> applied to RAPI (a more complex use case) fails with the exact same segfault/
> On Thu, Aug 21, 2014 at 6:19 PM, brainstorm <email@example.com> wrote:
> Thanks David! That was it!
> On Tue, Aug 19, 2014 at 7:38 PM, David Froger <firstname.lastname@example.org>
> Quoting brainstorm (2014-08-19 16:55:28)
> > That sounds much more like the case... how can I fix/workaround it in
> > Makefile?:
> > https://github.com/brainstorm/swig-python-skel/commit/9c28128c
> Hi Roman,
> I modified the Makefile like this, which works for me:
> Note that distutils works very well to build Python extension, and
> this kind of problems:
"La simplicité est la sophistication suprême."
-- Léonard de Vinci