Can I use MATLAB Engine API for Python in a Docker container with an individual license?
이전 댓글 표시
I created a Docker container with a R2023b image and installed the MATLAB Engine API for Python. I can use my individual license to start a MATLAB session in the Docker container, but when I attempt to start a MATLAB session from Python I get the following error: "matlab.engine.EngineError: Unable to launch Simple server: Unable to launch /opt/matlab/R2023a/bin/matlab".
>>> import matlab.engine
>>> eng=matlab.engine.start_matlab()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/matlab/engine/__init__.py", line 128, in start_matlab
eng = future.result()
File "/usr/local/lib/python3.8/dist-packages/matlab/engine/futureresult.py", line 67, in result
return self.__future.result(timeout)
File "/usr/local/lib/python3.8/dist-packages/matlab/engine/matlabfuture.py", line 87, in result
handle = pythonengine.getMATLAB(self._future)
matlab.engine.EngineError: Unable to launch Simple server: Unable to launch /opt/matlab/R2023a/bin/matlab
because: Timed out reading transport byte from transport
Can I use MATLAB Engine API for Python in a Docker container with my individual license?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Python Package Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!