Effacer les filtres
Effacer les filtres

Cannot start the MATLAB engine for python

15 vues (au cours des 30 derniers jours)
Marija Stojchevska
Marija Stojchevska le 5 Nov 2018
Hello,
I am using Matlab R2018b on Ubuntu 16.04. I am also using PyCharm and python 3.5 I get however the following error when I try to start the MATLAB engine for python.
eng = matlab.engine.start_matlab()
matlab.engine.EngineError: Unable to launch MVM server: Unable to launch /.../bin/matlab
because: An error occurred while initializing child process: Failed to fork, while attempting to execute "/.../bin/matlab [here continues the very long command]" with Error : Cannot allocate memory
Can anyone help me and explain why I get this error?
Thank you

Réponses (1)

Harry Vancao
Harry Vancao le 8 Nov 2018
Modifié(e) : Harry Vancao le 8 Nov 2018
When you start a MATLAB engine, a new headless MATLAB process is started. The error means that the process was unable to be forked due to system resource limitations. More specifically, it appears that your machine does not have enough memory to launch MATLAB.
You can trouble-shoot this by running the command "top" on your terminal and monitor the memory availability of your machine when you are starting the MATLAB engine. Please ensure that at least 1GB of RAM is available before the engine is started.

Catégories

En savoir plus sur Call MATLAB from Python dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by