Matlab crashes when trying to run a function from a python module(odrive) on matlab
조회 수: 7 (최근 30일)
이전 댓글 표시
I am having trouble calling a python module on matlab. Here is how its run in python odrv0 = odrive.find_any() and this is how i am running it on matlab odrv0 = py.odrive.find_any()
Am i doing something wrong?
Also, when run in python, the type(odrv0) is <class 'fibre.remote_object.RemoteObject'>
댓글 수: 0
답변 (1개)
Imran
2022년 11월 4일
Hello Vivek,
I understand that you're facing crashes on MATLAB when you're trying to run a function from a Python module.
If MATLAB crashes when you try to use a function from a Python module, then this might be caused by a version conflict between libraries shipped by MATLAB and the ones required by the Python package you are trying to use.
Starting in MATLAB R2019b, you can try the out-of-process execution mode while working with the Python interface in MATLAB. This runs the Python commands in a separate process and helps avoid potential library conflicts. Please refer to the documentation to learn more about this.
I hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!