No other mcrInstance can be initialized because blessed init failed.

I am trying to install the matlab runtime on an aws ec2 instance and run some matlab code from python. However i get the following error... SystemError: No other mcrInstance can be initialized because blessed init failed.
Below is a piece of the log.
[Thu May 16 15:07:59.308040 2019] [:error] [pid 5334] [remote 172.31.41.230:172] Traceback (most recent call last):
[Thu May 16 15:07:59.308077 2019] [:error] [pid 5334] [remote 172.31.41.230:172] File "/opt/python/current/app/application.py", line 12, in <module>
[Thu May 16 15:07:59.308081 2019] [:error] [pid 5334] [remote 172.31.41.230:172] myAdder = adder.initialize()
[Thu May 16 15:07:59.308088 2019] [:error] [pid 5334] [remote 172.31.41.230:172] File "/opt/python/run/venv/src/matlabruntimeforpython/adder/__init__.py", line 305, in initialize
[Thu May 16 15:07:59.308091 2019] [:error] [pid 5334] [remote 172.31.41.230:172] return _pir.initialize_package()
[Thu May 16 15:07:59.308097 2019] [:error] [pid 5334] [remote 172.31.41.230:172] File "/opt/python/run/venv/src/matlabruntimeforpython/adder/__init__.py", line 253, in initialize_package
[Thu May 16 15:07:59.308100 2019] [:error] [pid 5334] [remote 172.31.41.230:172] package_handle.initialize()
[Thu May 16 15:07:59.308106 2019] [:error] [pid 5334] [remote 172.31.41.230:172] File "/opt/elasticbeanstalk/eb_infra/runtime/v96/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/deployablepackage.py", line 33, in initialize
[Thu May 16 15:07:59.308115 2019] [:error] [pid 5334] [remote 172.31.41.230:172] mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path)
[Thu May 16 15:07:59.308131 2019] [:error] [pid 5334] [remote 172.31.41.230:172] SystemError: No other mcrInstance can be initialized because blessed init failed.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Call Python from MATLAB 的更多信息

产品

版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by