【已解决】TypeError: qRegisterResourceData(int, str, str, str): argument 2 has unexpected type ‘str’

今天拿到一个PyQt的程序,运行之后,发现无法执行,报错:

TypeError: qRegisterResourceData(int, str, str, str): argument 2 has unexpected type 'str'

经过搜索,已解决,解决方法:

把编译命令后面加上-py3 ,如

pyrcc4 .exe -py3 some.qrc -o someqrc.py

见附图:

QQ截图20160905214435

加上参数,就可以解决该问题。附参考网址:

http://stackoverflow.com/questions/1619574/pyqt-problems-using-pyqts-resource-system/1658244#1658244

文章的脚注信息由WordPress的wp-posturl插件自动生成



|2|left
打赏

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: