[PyQt] Deploying PyQt in a C++ Application

Phil Thompson phil at riverbankcomputing.com
Fri Aug 7 10:42:58 BST 2015


On 07/08/2015 1:02 am, Ferguson, Eric W (397B) wrote:
> When I tried to use pyqtdeploycli to create a static version of PyQt I 
> got
> unexpected errors. I am targeting a 64-bit os platform (which is the 
> same
> platform as my host).
> 
> pyqtdeploycli --package pyqt4 --target osx-64 configure
> Traceback (most recent call last):
>   File
> "/Library/Frameworks/Python.framework/Versions/3.4/bin/pyqtdeploycli",
> line 11, in <module>
>     sys.exit(main())
>   File
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packa
> ges/pyqtdeploy/main_cli.py", line 74, in main
>     rc = configure(args)
>   File
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packa
> ges/pyqtdeploy/main_cli.py", line 138, in configure
>     configure_package(args.package, args.target, args.output)
>   File
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packa
> ges/pyqtdeploy/packages/packages.py", line 74, in configure_package
>     macros={'@PY_PLATFORM@': py_platform})
>   File
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packa
> ges/pyqtdeploy/file_utilities.py", line 105, in copy_embedded_file
>     contents.replace(key, value)
> TypeError: arguments did not match any overloaded call:
>   QByteArray.replace(int, int, QByteArray): argument 1 has unexpected 
> type
> 'str'
>   QByteArray.replace(QByteArray, QByteArray): argument 1 has unexpected
> type 'str'
>   QByteArray.replace(str, QByteArray): argument 2 has unexpected type 
> 'str'

It's a bug triggered by PyQt v5.5. It's fixed in hg. There will be a new 
release next week.

Phil


More information about the PyQt mailing list