フィルターのクリア

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

2 ビュー (過去 30 日間)
Leo Alekseyev
Leo Alekseyev 2015 年 4 月 15 日
編集済み: Shourya Sonkar Roy Burman 2015 年 11 月 10 日
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 件のコメント
Nick Barry
Nick Barry 2015 年 6 月 25 日
Same problem. Any luck solving this?
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 Center および File ExchangeCall MATLAB from Python についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by