Why do I receive: EngineError: Import argument 'matlab.in​ternal.eng​ine.input' cannot be found or cannot be imported?

Hello,
I installed the Python engine module as
On Mac or Linux systems:
cd "matlabroot/extern/engines/python"
python setup.py install
No error message. But when I try the example:
import matlab.engine
eng = matlab.engine.start_matlab()
print(eng.sqrt(4))
I get:
EngineError: Import argument 'matlab.internal.engine.input' cannot be found or cannot be imported.
No clue what is going on. Shouldn't this be tested at the installation time? I appreciate any comments.
Thanks, -fernando

回答 (1 件)

Wasikar
Wasikar 2018 年 2 月 21 日
In python sqrt always returned as float.Try sqrt(4.0)

カテゴリ

質問済み:

2017 年 4 月 7 日

回答済み:

2018 年 2 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by