victorlei / smop

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

ImportError: No module named libsmop #128

Open vin0110 opened 6 years ago

vin0110 commented 6 years ago

Generated code raises ImportError. Error is

Traceback (most recent call last):
  File "foo.py", line 2, in <module>
    from libsmop import *
ImportError: No module named libsmop

The line in questions is from libsmop import *

I cannot find libsmop anywhere on my system. The only place that smop exists is /usr/lib/python3.4/site-packages/smop-0.41-py3.4.egg.

Specifics of my install:

RobBW commented 6 years ago

See my note 5 in response to issue #111 Regards RobBW

RobBWilkinson@gmail.com

On 25/07/2018, at 08:47, vin0110 notifications@github.com wrote:

Generated code raises ImportError. Error is

Traceback (most recent call last): File "foo.py", line 2, in from libsmop import ImportError: No module named libsmop The line in questions is from libsmop import

I cannot find libsmop anywhere on my system. The only place that smop exists is /usr/lib/python3.4/site-packages/smop-0.41-py3.4.egg.

Specifics of my install:

CentOS Linux release 7.5.1804 (Core) Python 3.4.8 smop 0.41 --installed with easy_install. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/128, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJhqRrfn0fnOb2CrKAMYgjdhmd16rks5uJ4fKgaJpZM4VefRt.

SolarGitter commented 6 years ago

I am having the exact same issue. @RobBW : Unfortunately I'm not sure what to do with your note?

I feel like I'm very close to make a smop-translated file work though :)

I installed via pip install smop the version 0.41

rafaelvalle commented 5 years ago

try substituting from libsmop import * with from smop.libsmop import *