no module named error
Joe
invalid.emal at at.address
Tue Dec 8 10:08:36 EST 2009
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:
#!/usr/bin/python
import sys
from moda import *
def main(args = sys.argv[1:]):
print 'test'
if __name__ == '__main__' :
main()
Any idea what I'm doing wrong?
More information about the Python-list
mailing list