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 个评论

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?
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.
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 Exchange 中查找有关 Python Package Integration 的更多信息

产品

版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by