Can I use MATLAB Engine API for Python in a Docker container with an individual license?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!