victorlei / smop

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

Cannot run due to relative import #122

Closed mick-d closed 6 years ago

mick-d commented 6 years ago
Traceback (most recent call last):
  File "<conda_env>/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "<conda_env>/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "<bin_dir>/smop-master/smop/main.py", line 15, in <module>
    from . import options
ValueError: Attempted relative import in non-package
victorlei commented 6 years ago

Fixed in 0.40

azimb commented 4 years ago

Just cloned the repo from master and I'm still facing the same issue. Simply ran python main.py solver.m and I get the following error:

image

geraman21 commented 3 years ago

@azimb Hi ! Did you manage ti fix this issue ? Facing the same problem rn...

Uio96 commented 3 years ago

Me too. The problem seems to exist in the latest version.

Ananyapam7 commented 2 years ago

Me too.