run python script with mcc compiled matlab
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to compile a matlab script that contains a python function (used with pyrunfile).
This code is running with no issues with a regular matlab run, but failed to run after compiling with mcc.
I added the python function path to the mcc, using -a, with no help.
The error that I got is
'MATLAB:Pyrunfile:FileNotFound'.
I printed the main function path using "ls". I see all matlab file names and folder names in this print, except the folder that contains the python function.
Any ideas?
1 件のコメント
Aravind
2024 年 11 月 20 日
Could you please share your MATLAB script and python file along with the directory structure and the exact mcc command you are running? This will help in identifying and debugging the issue.
回答 (1 件)
Taylor
2024 年 11 月 22 日
Double check that you have the supported version of the reference implementation (CPython) installed on your system. See these previous posts for more information
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!