2017-07-26 136 views
0
C:\Python27\radish>radish -b radish features/calculator.feature 
Traceback (most recent call last): 
    File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main 
    "__main__", fname, loader, pkg_name) 
    File "c:\python27\lib\runpy.py", line 72, in _run_code 
    exec code in run_globals 
    File "C:\Python27\Scripts\radish.exe\__main__.py", line 5, in <module> 
ImportError: No module named main 

我嘗試運行蘿蔔測試。這個命令用於工作:ImportError:No module named main - Python

radish -b radish features/calculator.feature 

但現在我不知道爲什麼它不工作了...任何想法?

+0

from radish import given,when,then ...當鼠標懸停在進口處'from'下劃線並寫有[pylint] E0611:模塊'radish'中沒有'given' – pingwin850

回答

0

__init__.py從我的一個目錄中引起了問題。我不得不刪除它。