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 Comments

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 ?

Sign in to comment.

Answers (0)

Categories

Products

Release

R2021a

Asked:

on 28 Oct 2022

Commented:

on 30 Jan 2023

Community Treasure Hunt

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

Start Hunting!