swig-eigen-numpy | A demonstration of a SWIG wrapper for a C library | Data Manipulation library
kandi X-RAY | swig-eigen-numpy Summary
kandi X-RAY | swig-eigen-numpy Summary
A demonstration of a SWIG wrapper for a C++ library containing Eigen matrix types for use with Python and NumPy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of swig-eigen-numpy
swig-eigen-numpy Key Features
swig-eigen-numpy Examples and Code Snippets
Community Discussions
Trending Discussions on swig-eigen-numpy
QUESTION
Swig within anaconda environment on Mac OS throws Fatal Python error: PyThreadState_Get: no current thread
I'm looking for a solution using swig and conda on Mac OS X.
The code is based on this github example, which works well on Linux 16.04 but fails on Mac OS X
https://github.com/rdeits/swig-eigen-numpy
It works outside the conda environment, but not inside of it.
This is my current environment conda list
ANSWER
Answered 2018-Apr-30 at 20:31I found a pointer to an answer on the anaconda support forum https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/057P4uNWyCU
The python 3.6 binary that ships with anaconda is statically linked with the python libs. Thats why loading a library that dynamically links to them fails due to duplicate symbols. The solution was not to link the library with python libs.
The magic part (it feels like a workaround) is in the SwigPython.cmake file
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install swig-eigen-numpy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page