I know that there are similar questions, but I could not find a solution for this. Here is what I did.
I installed the ghost module using pip. The site-packages / ghost folder contains 3 files __init__.py , ghost.py and test.py
__init__.py has the following content
from ghost import Ghost from test import GhostTestCase
Module
offers a method
from ghost import Ghost
But this causes the following error.
File "<pyshell#3>", line 1, in <module> from ghost import ghost File "G:\Python33\lib\site-packages\ghost\__init__.py", line 1, in <module> from ghost import Ghost ImportError: cannot import name Ghost
I tried to add the path to PYTHONPATH; it did not work. I canโt understand why this is happening with the standard module. I work in python 3.3
source share