yasirroni / matpower-pip

A Python Package for Easy Access to MATPOWER Power System Simulation Package
MIT License
20 stars 0 forks source link

No package named Oct2Py in Mac. #16

Closed 1rashiid closed 3 months ago

1rashiid commented 3 months ago

I get the following error.

"ImportError: No package named Oct2Py. Please install using pip install matpower[octave] or pip install oct2py."

I tried a different way to install oct2py and it does not work. You have a solution for Windows on your website, but I can not see any hint for Mac. Could you please help me with that? Thank you.

yasirroni commented 3 months ago

@1rashiid Do you have octave installed? Check via octave in terminal and send here the output.

1rashiid commented 3 months ago

@yasirroni Yes. I have the octave. I can install the package, but I get that error when I want to run the ACOPF on my data. So, honestly, I did not get what I should run in my terminal to check the output. Do you mean, I should run all of my code in the octave terminal?

yasirroni commented 3 months ago

Please read before reply. octave cli on Mac zsh terminal or any terminal.

1rashiid commented 3 months ago

Thank you for getting back to me. Yes, I have the octave and here is the terminal output and a test. Screenshot 2024-06-03 at 8 05 53 AM

yasirroni commented 3 months ago

pip install matpower oct2py or similar command such as python3 -m pip install ... should solve your problem if you already have octave cli, preferably octave 9.

1rashiid commented 3 months ago

Ok. I have the octave and I already tested all of the commands such as pip install ... and python3 -m pip... and it does not work. Btw, thanks for your time.

yasirroni commented 3 months ago

@1rashiid What is the output of the terminal? Please always copy paste and use code fence when asking in GitHub.