Matlab 2021a - MCLMCR_UNK​NOWN_ERROR​_INITIALIZ​ING_MCREN

Im getting this error with python 3.7 on matlab runtime 2021a:
Traceback (most recent call last):
File "test.py", line 10, in <module>
Test = Test.initialize()
File "/root/mat/Test/__init__.py", line 322, in initialize
return _pir.initialize_package()
File "/root/mat/Test/__init__.py", line 270, in initialize_package
package_handle.initialize()
File "/usr/local/MATLAB/MATLAB_Runtime/v910/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/deployablepackage.py", line 37, in initialize
mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path)
SystemError: N10foundation4core6except9ExceptionIN3MCR6mclmcr37MCLMCR_UNKNOWN_ERROR_INITIALIZING_MCREN13pysdk_runtime16RuntimeExceptionEvEE
Im using Ubuntu 16.04 installed only with Matlab Runtime R2021a (9.10) and Python 3.7 in an OpenVZ virtualization.
I have made this tests:
-Installing Matlab Runtime R2021a (9.10), Python 3.7 in windows and everything works fine.
-Installing Matlab Runtime R2019a (9.6), Python 3.7 in Ubuntu 16.04,compile Test rutine for that Runtime version, in OpenVZ and everything works fine.
-Installing Matlab Runtime R2021a (9.10), Python 3.7 in Ubuntu 16.04, in VirtualBox and everything works fine.
*Test rutine only make a calculation and return
*test.py code:
import Test
import matlab
Test = Test.initialize()
result = Test.Test(1 ,nargout=1)
Test.terminate()
print(result)
Any ideas what is thar error? i been searching everywhere and dont find anything like that "N10foundation4core6except9ExceptionIN3MCR6mclmcr37MCLMCR_UNKNOWN_ERROR_INITIALIZING_MCREN13pysdk_runtime16RuntimeExceptionEvEE"

3 件のコメント

Zheng XinXing
Zheng XinXing 2022 年 7 月 16 日
I am also meet this issue
rich Richard
rich Richard 2024 年 8 月 5 日
I am also meet this issue
Divyanshu
Divyanshu 2024 年 8 月 6 日
編集済み: Divyanshu 2024 年 8 月 6 日
Hi Martin,
A possible reason can be a clash between different versions of MATLAB Runtime in your system. So I would recommend to uninstall all the versions of MATLAB Runtime and then do a fresh install of a compatible version.
You can refer the following documentation link for details about how to uninstall MATLAB runtime in linux machines:
Hope it helps!

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2021 年 3 月 30 日

編集済み:

2024 年 8 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by