victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 409 forks source link

No output and no file created #168

Open b-thebest opened 4 years ago

b-thebest commented 4 years ago

I used the command as per document without installation. I followed these steps:

  1. Install dependencies
  2. Run : python main.py solver.m

After this no a.py or solver.py is created. Please check the code. I have latest numpy, networkx, ply installed.

SigmaField commented 4 years ago

Hi, I have the same issue when running this on Windows 10. All the dependencies are installed via Anaconda but when I run main.py with solver.m, no solver.py file is created. Nor do I receive an error message or warning.

deeksha777 commented 3 years ago

facing the same issue on Windows 10

deeksha777 commented 3 years ago

Guys include main() at the end of main.py file. It works perfectly fine

Jahangirali09 commented 3 years ago

Hi, I have installed SMOP using pip install smop and it is successfully installed. Can you explain what I have to do next to convert my matlab program into python. What command do I need to run for converting my .m file to python output. Thank you.

jojo-31 commented 3 years ago

Add this at the end of main.py:

if __name__ == "__main__":
    main()