Matlab 2021a - MCLMCR_UNK​NOWN_ERROR​_INITIALIZ​ING_MCREN

조회 수: 10 (최근 30일)
Martin Cattaneo
Martin Cattaneo 2021년 3월 30일
편집: Divyanshu 2024년 8월 6일
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
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개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by