Cannot start the MATLAB engine for python

조회 수: 5 (최근 30일)
Marija Stojchevska
Marija Stojchevska 2018년 11월 5일
편집: Harry Vancao 2018년 11월 8일
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

답변 (1개)

Harry Vancao
Harry Vancao 2018년 11월 8일
편집: Harry Vancao 2018년 11월 8일
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.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by