简体   繁体   中英

ImportError: No module named main - Python

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

I try to run radish test. This command used to work:

radish -b radish features/calculator.feature

but right now I have no idea why it doesn't work anymore... Any idea?

__init__.py from one of my directories caused a problem. I had to delete it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM