PyQt5系列(三)Python3.x AttributeError: module 'string' has no attribute 'maketrans'错误解决
2017-09-26 14:50
639 查看
解决:
1./usr/local/lib/python3.6/site-packages/PyQt5/uic/port_v2/ascii_upper.py修改
_ascii_trans_table =
string.maketrans(string.ascii_lowercase, string.ascii_uppercase)
改为:
_ascii_trans_table =
str.maketrans(string.ascii_lowercase, string.ascii_uppercase)
1./usr/local/lib/python3.6/site-packages/PyQt5/uic/port_v2/ascii_upper.py修改
_ascii_trans_table =
string.maketrans(string.ascii_lowercase, string.ascii_uppercase)
改为:
_ascii_trans_table =
str.maketrans(string.ascii_lowercase, string.ascii_uppercase)
相关文章推荐
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- [python错误]builtins.AttributeError: 'module' object has no attribute 'request'
- 【Python 脚本报错】AttributeError:'module' has no attribute 'xxx'的解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python3.x中出现 "AttributeError: module 'urllib' has no attribute 'urlopen'" 的解决方法
- 解决Python报错: AttributeError: 'module' object has no attribute '_base'
- python 错误解析 AttributeError: 'module' object has no attribute 'dumps'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python3.X识别混合编码,顺便解决“AttributeError: 'module' object has no attribute 'urlopen'”
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python3下错误AttributeError: ‘dict’ object has no attribute’iteritems‘的分析与解决
- Python错误AttributeError: 'module' object has no attribute 'copy'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- 【python学习笔记(2)】脚本报错"AttributeError: 'module' object has no attribute 'xxx'"解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法