Matlab 2021a - MCLMCR_UNKNOWN_ERROR_INITIALIZING_MCREN
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Divyanshu
am 6 Aug. 2024
Bearbeitet: Divyanshu
am 6 Aug. 2024
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!
Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!