python - ImportError: cannot import name Ghost -


i know there similar questions, not find solution one. here have done.

i installed ghost module using pip. site-packages/ghost folder has 3 files __init__.py, ghost.py , test.py.

__init__.py has following content

from ghost import ghost test import ghosttestcase 

module suggests method

from ghost import ghost 

but throws following error.

file "<pyshell#3>", line 1, in <module>     ghost import ghost   file "g:\python33\lib\site-packages\ghost\__init__.py", line 1, in <module>     ghost import ghost importerror: cannot import name ghost 

i tried adding path pythonpath; didn't work. can't figure out why happening standard module.i working in python 3.3

with python 3, try changing line in __init__.py to

from .ghost import ghost 

to package-relative import. if works, it's bug in module , should report it.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -