RuntimeWarning: Parent module '...' not found while handling absolute import
2017-03-21 10:28
459 查看
Pycharm 升级到最新版以后运行 unittest 报错。
import sysRuntimeWarning: Parent module '...' not found while handling absolute import
import timeRuntimeWarning: Parent module '...' not found while handling absolute import
这是一个已知问题,从2016.2版本就存在,目前为止还没解决。BUG目前的解决办法是使用旧的utrunner.py替换新的utrunner.py
转载自:http://blog.csdn.net/wirelessqa/article/details/53465854
报错信息:
RuntimeWarning: Parent module '...' not found while handling absolute importimport sysRuntimeWarning: Parent module '...' not found while handling absolute import
import timeRuntimeWarning: Parent module '...' not found while handling absolute import
这是一个已知问题,从2016.2版本就存在,目前为止还没解决。BUG目前的解决办法是使用旧的utrunner.py替换新的utrunner.py
解决办法:
STEP1. 打开 pycharm 目录open /Applications/PyCharm\ CE.app/Contents/helpers/pycharm11STEP2. 下载旧的utrunner.pySTEP3. 用旧的utrunner.py替换pycharm目录下的utrunner.py然后问题解决。
转载自:http://blog.csdn.net/wirelessqa/article/details/53465854
相关文章推荐
- unittest RuntimeWarning: Parent module '' not found while handling absolute import
- unittest RuntimeWarning: Parent module XX not found while handling absolute import
- Pycharm -- RuntimeWarning: Parent module '...' not found while handling absolute import
- pycharm2016.2.X中出现“Parent module ‘YOUR_MODULE_HERE’ not found while handling absolute import ”解决方法
- 解决 RuntimeWarning: Parent module '...' not found while handling absolute import
- pycharm 单元测试失败 not found while handling absolute import
- RuntimeWarning: Parent module 'settings' not found while handling absolute import
- RuntimeWarning: Parent module 'test_project.test_case' not found while handling absolute
- iOS开发——warning: directory not found for option ' '
- #import <Cocoa/Cocoa.h> 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found
- Warning:Exception while processing task java.io.FileNotFoundException
- 去掉xcode编译warning:ld: warning: directory not found for option '-L
- Ant问题:warning: 'includeantruntime' was not set
- Warning:Exception while processing task java.io.FileNotFoundException: D:\...\app\build\intermediate
- Ant问题:warning: 'includeantruntime' was not set
- warning: directory not found for option ' '
- Ant问题:warning: 'includeantruntime' was not set
- 去掉xcode编译warning:ld: warning: directory not found for option '
- 去掉xcode编译warning:ld: warning: directory not found for option '-L
- fatal error: 'HIToolbox/HIToolbox.h' file not found #import <HIToolbox/HIToolbox.h>