Hello, I am very new at python and I am getting this error:
Traceback (most recent call last):
File "mountain.py", line 28, in ?
from toolkit.interface import interface
ImportError: No module named toolkit.interface
Python is installed in a local directory:
My directorie tree is like this:
(local directory)/site-packages/toolkit/interface.py
My code is in here
(local directory)/site-packages/toolkit/examples/mountain.py
To run the example I do python mountain.py
, and in the code I have:
from toolkit.interface import interface
And i get the error that I wrote, I have already checked the sys.path
and in the sys.path
I have the directory /site-packages
, also I have the file __init__.py.bin
in the toolkit folder to indicate to python that this is a package. I also have a __init__.py.bin
in the examples directory.
I do not why Python cannot find the file when is in the sys.path, any ideas?. Can be a permissions problem?, Do I need execution permission?.
Thanks.