Matlab 2021a - MCLMCR_UNKNOWN_ERROR_INITIALIZING_MCREN
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Divyanshu
il 6 Ago 2024
Modificato: Divyanshu
il 6 Ago 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!
Risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!