原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【已解决】TypeError: qRegisterResourceData(int, str, str, str): argument 2 has unexpected type ‘str’
本文链接地址: 【已解决】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
见附图:
加上参数,就可以解决该问题。附参考网址:
http://stackoverflow.com/questions/1619574/pyqt-problems-using-pyqts-resource-system/1658244#1658244
原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【已解决】TypeError: qRegisterResourceData(int, str, str, str): argument 2 has unexpected type ‘str’
本文链接地址: 【已解决】TypeError: qRegisterResourceData(int, str, str, str): argument 2 has unexpected type ‘str’
文章的脚注信息由WordPress的wp-posturl插件自动生成

微信扫一扫,打赏作者吧~![[整理]how to run flask with pyqt5](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2021/03/pyqt_flask.png&w=280&h=210&zc=1)
![[已解决]LINK : fatal error LNK1158: cannot run 'rc.exe' 错误的解决办法](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2021/02/Snipaste_2021-02-17_15-18-26-1024x505.png&w=280&h=210&zc=1)
![[已解决]Python扩展模块 error: Unable to find vcvarsall.bat](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/11/Snipaste_2020-11-19_10-01-38.png&w=280&h=210&zc=1)
![[整理]PyQt画圆,动态变色](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/08/drawCircle.gif&w=280&h=210&zc=1)