Cannot invoke Matlab runtime from python?

I am trying to run my matlab file from python IDE which is Pycharm.
I have tried to start the Matlab runtime but it is not invoking. It gives an error such as 'AttributeError: module 'sentimentAnalysis' has no attribute 'initialize''.
How can I solve this? Any ideas?

3 件のコメント

Nilanshu Ranjan
Nilanshu Ranjan 2022 年 10 月 31 日
This does not seem to be MATLAB related error. It seems to be a Python related error that occurs due to invalid package imports. Can you check your code for the same?
Zubair Adil Soomro
Zubair Adil Soomro 2022 年 10 月 31 日
Yes the code was same. However, now the error has been resolved, this happened after restarting my pc. I think it could be due to the package was not valid yet as you have suggested.
Antoine
Antoine 2023 年 1 月 30 日
I have the same problem. However even when I restart my pc I still have the same error message. Do you have any ideas where it come from ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePython Package Integration についてさらに検索

製品

リリース

R2021a

質問済み:

2022 年 10 月 28 日

コメント済み:

2023 年 1 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by