no module named error
Diez B. Roggisch
deets at nospam.web.de
Tue Dec 8 10:11:26 EST 2009
Joe wrote:
> I am trying to write/run a python script which imports from another
> script which is located in my /usr/lib64/python2.6/site-packages/ dir,
> but getting the following error.
>
> $ python ./mytest.py
> Traceback (most recent call last):
> File "./mytest.py", line 45, in <module>
> from moda import *
> File "/usr/lib64/python2.6/site-packages/moda.py", line 7, in
> <module>
> import _moda
> ImportError: No module named _moda
>
>
> The script moda.py exists. My script is:
But it's searching for _moda.*, most probably a binary extension. Does that
exist, and if yes, has it the proper architecture or is it maybe 32 bit?
Diez
More information about the Python-list
mailing list