MATLAB Answers


How to to deal error “Unable to launch MVM server: License Error: Error checking out license” when attemptting to call matlab function through python?

Asked by dylan
on 21 Jul 2019 at 8:21
Latest activity Edited by dylan
on 21 Jul 2019 at 11:17
When I run a python code which call some matlab function on linux server, the err message returns as follows:
Traceback (most recent call last):
File "", line 20, in <module>
engine = matlab.engine.start_matlab()
File "/home/task3/dylan/anaconda3/lib/python3.7/site-packages/matlab/engine/", line 117, in start_matlab
eng = future.result()
File "/home/task3/dylan/anaconda3/lib/python3.7/site-packages/matlab/engine/", line 67, in result
return self.__future.result(timeout)
File "/home/task3/dylan/anaconda3/lib/python3.7/site-packages/matlab/engine/", line 87, in result
handle = pythonengine.getMATLAB(self._future)
matlab.engine.EngineError: Unable to launch MVM server: License Error: Error checking out license
so how can I deal this error to make my code work?


Show 1 older comment
But I can run my code successfully when the matlab desktop is activated, this error will only turn out when I submit a task to server.
It's not clear to me what the distinction is between "matlab desktop" and "the server". If these are two different machines, then it's not relevant what's on your desktop, it's matlab on the server that needs to be licensed.
Similarly, if the python code runs under a different user, it's that user that needs to have matlab licensed (unless the license is tied to the computer, not sure if that's an option with matlab).
Sorry for the disturbing message, I am using python to call matlab function on a linux server, but it turns out that I can only rum my code through an IDE (ie. spyder3) on the login node, if I submit my task to the calculate node on server, the result will turn out the error showing above.

Sign in to comment.

0 Answers