Cannot start the MATLAB engine for python
5 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Harry Vancao
on 8 Nov 2018
Edited: Harry Vancao
on 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.
0 Comments
See Also
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!