python 报错信息: AttributeError: module 'token' has no attribute '__all__'
2018-03-08 11:13
525 查看
之前项目代码都能正常运行,但是在我写了一个token.py文件之后,很久没有管之后突然某一天运行时开始报错,提示:AttributeError: module 'token' has no attribute '__all__'。纳闷,原来是token.py文件导致的,可能跟系统文件名冲突,故修改文件名称,重新运行,一切正常。以后切记文件名千万不要跟系统命名冲突!
相关文章推荐
- python 报错信息: AttributeError: module 'token' has no attribute '__all__'
- 学习Python csv模块遇到AttributeError: module 'csv' has no attribute 'writer'和写入后出现空格问题
- python 错误解析 AttributeError: 'module' object has no attribute 'dumps'
- Python脚本报错AttributeError: ‘module’ object has no attribute ’urllibopen'(Python 2.7.11 )
- Python Matplotlib AttributeError: 'module' object has no attribute 'popall'
- AttributeError: module 'tensorflow.python.platform.flags' has no attribute 'mark_flag_as_required'
- python爬虫框架scarpy之AttributeError: module 'scrapy' has no attribute 'spider'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’
- python 中出现的AttributeError: 'module' object has no attribute '_handlerList'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- PyQt5系列(三)Python3.x AttributeError: module 'string' has no attribute 'maketrans'错误解决
- Python AttributeError: ‘module’ object has no attribute ‘A’
- AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'
- Python错误AttributeError: 'module' object has no attribute 'copy'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- python3 报错: AttributeError: 'module' object has no attribute 'urlopen'
- Python AttributeError: 'module' object has no attribute xxxx
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法