解决 RuntimeWarning: Parent module '...' not found while handling absolute import
来源:互联网 发布:如何看待校园暴力 知乎 编辑:程序博客网 时间:2024/05/06 13:35
Pycharm 升级到 2016.3 以后运行 unittest 报错。
报错信息:
RuntimeWarning: Parent module '...' not found while handling absolute import import sysRuntimeWarning: Parent module '...' not found while handling absolute import import timeRuntimeWarning: Parent module '...' not found while handling absolute import import unittest
这是一个已知问题,从2016.2版本就存在,目前为止还没解决。BUG
目前的解决办法是使用旧的utrunner.py替换新的utrunner.py
解决办法:
STEP1. 打开 pycharm 目录
open /Applications/PyCharm\ CE.app/Contents/helpers/pycharm
STEP2. 下载旧的utrunner.py
STEP3. 用旧的utrunner.py替换pycharm目录下的utrunner.py
然后问题解决。
1 0
- 解决 RuntimeWarning: Parent module '...' not found while handling absolute import
- RuntimeWarning: Parent module 'settings' not found while handling absolute import
- unittest RuntimeWarning: Parent module '' not found while handling absolute import
- unittest RuntimeWarning: Parent module XX not found while handling absolute import
- pycharm2016.2.X中出现“Parent module ‘YOUR_MODULE_HERE’ not found while handling absolute import ”解决方法
- Python进阶(四十八)-Python导包时提示SystemError: Parent module '' not loaded, cannot perform relative import
- Module iscsi_trgt not found
- Webpack错误解决(一):ERROR in Entry module not found
- Webpack错误解决(一):ERROR in Entry module not found
- Python cx_Oracle - import not a valid win32 app or ImportError: No module named cx_Oracle Found
- XMPPFramework,编译失败,@import libxmlSimu后提示:Module 'libxmlSimu' not found
- XMPPFramework,编译失败,@import libxmlSimu后提示:Module 'libxmlSimu' not found
- Unable to make the module: related gradle configuration was not found. Please, re-import the Gradle
- anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found Import No module named googl
- 关于 hibernate import file not found: /import.sql 问题的解决
- module 'null' not found錯誤處理
- insmod: module 'usb_driver' not found
- rmmod: module '***' not found 相关
- 五、Java 多线程 并发编程#
- zzulioj-1962-翻杯子【思维】
- hbase 0.98.9客户端的两个参数调优
- 计算机中的内存
- 详细探究Spark的shuffle实现
- 解决 RuntimeWarning: Parent module '...' not found while handling absolute import
- 康奈尔大学的电影对白语料库介绍 --Cornell Movie-Dialogs Corpus
- Java基础--log4j
- 乌干达实施比特币的监管法案
- Tomcat Could not publish server configuration for Tomcat v7.0 Server at localhost.错误
- android省市区区域联动地址优化
- 机器学习(Machine Learning)&深度学习(Deep Learning)资料(上)
- 一个天气接口
- 数据库之路——SQL语法基础