필터 지우기
필터 지우기

Matlab engine for python segfaults in matlab.eng​ine.start_​matlab() (Matlab R2014b, OS X)

조회 수: 2 (최근 30일)
I recently started experimenting with interfacing Python and Matlab. I need to use Anaconda Python distro. As mentioned in other answers, e.g. here , I use
export DYLD_LIBRARY_PATH=/anaconda/lib:${DYLD_LIBRARY_PATH}
which allows me to import matlab.engine without segfaulting, but any time I try to run matlab.engine.matlab_start(), I get the usual "Segmentation fault 11" in libpython2.7.dylib. This is driving me a little crazy; is there a known solution for this?
  댓글 수: 2
Craig
Craig 2015년 8월 8일

Exactly the same problem, running anaconda as well. I think it's something to do with dynamic linking - see https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/fUpqjkK5jEI

Did you solve this in the end or give up? Cheers, Craig

댓글을 달려면 로그인하십시오.

답변 (2개)

Craig
Craig 2015년 8월 8일
편집: Craig 2015년 8월 9일
Any Luck with this? I think it's something to do with dynamic linking in anaconda that I don't understand.
Linking directly to the system lib seems to work for me, using Anaconda.
export DYLD_LIBRARY_PATH=/System/Library/Frameworks/Python.framework/Versions/2.7/lib:$DYLD_LIBRARY_PATH

Ryan
Ryan 2015년 9월 9일
Same issue; seems like not too much to ask that these features install properly

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by