Error Matlab Compiler SDK Python
16 ビュー (過去 30 日間)
古いコメントを表示
I've followed the tutorial on mathworks website on starting with the Compiler SDK for Python. I've already compiled the makesqr function that I want to call from Python but I have this error :
>>> makesqr.initialize()
Undefined function or variable 'setInitialWorkingFolder'.
Error in matlabrc (line 197)
File "/usr/local/lib/python3.4/site-packages/translator/__init__.py", line 301, in initialize
return _pir.initialize_package()
File "/usr/local/lib/python3.4/site-packages/translator/__init__.py", line 249, in initialize_package
package_handle.initialize()
File "/usr/MATLAB/R2016b/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/deployablepackage.py", line 33, in initialize mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path) SystemError
If someone can give me some help i'll be really grateful.
0 件のコメント
回答 (1 件)
Hitesh
2024 年 12 月 30 日 8:42
編集済み: Hitesh
2024 年 12 月 30 日 8:54
Hi fayçal ahmed zaid,
This error indicates the MATLAB Runtime does not installed properly which indicates that some of files are missing or corrupted . You need to ensure the MATLAB Runtime exists in this path "/usr/MATLAB/R2016b/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/deployablepackage.py". If the issue still persist try reinstalling the MATLAB Runtime. Kindly follow the steps mentioned in the documentation for generating and building python package :
For more information regarding "Generate Python Package and Build Python Application", kindly refer to the following MATLAB documentation:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!