victorlei / smop

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

No output file while no error message #134

Open zhnfs opened 5 years ago

zhnfs commented 5 years ago

tried both solver.m and my own m files

cknoll commented 5 years ago

I have the same issue. Tried with both python3.6 and python2.7

uros171513 commented 5 years ago

I have the same issue. Did you resolve it?

mukundhan3 commented 5 years ago

i too couldn't solve. Please help

peterlee909 commented 5 years ago

use command: python run.py matlab_file_name.m I finally get matlab_file_name.py. The python code is generated then but the code is not good enough to work.

ecalpy commented 4 years ago

Can someone please elaborate more on how to successfully run this on any .m file?

anil-adepu commented 4 years ago

Facing the same issue no error message and output .py file is generated

sneheshs commented 4 years ago

I am not sure about others, but for me, I had the same issue. So basically main.py does not have a line main() to call the main function. After I added it, it ran.

Also, the author forgot to mention that this only works in python2. At least for me, python3 did not work but python2 did.