victorlei / smop

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

NEED HELP !! nothing created for running the main #175

Open andy8456 opened 3 years ago

andy8456 commented 3 years ago

NEED HELP

python 3.9 smop 0.41

I am trying the example to transfer the .m into .py but nothing created after some steps

download smop file on github cd .....\Downloads\smop-master\smop extract the file python setup.py install --user cd smop

I changed the

from . import options from . import parse from . import resolve from . import backend from . import version

to

from smop import options from smop import parse from smop import resolve from smop import backend from smop import version

otherwise cannot run the file

python main.py solver.m show nothing on it. (run success but nothing here)

NO solver.py is created

Anything wrong here ? Please help...

GBR-613 commented 2 years ago

@andy8456 If running from sources, go to the project root and run run.py

@victorlei I would like to suggest adding the starting section in smop/main/py to prevent a confusion here:

if __name__ == "__main__":
    main()