Problem lies in fact that cx_freeze
tries to use uic
submodule for Python 2, not 3 and encounters Py3-incompatible syntax in one of files. Solution is quite simple:
Find uic
directory, it should be located in your_python_dir\Lib\site-packages\PyQt4\uic
. There are two directories there: port_v2
and port_v3
. Rename the first one, for example to port_v2_
. I think similar problem can occur while using Python2-rename v3
then. Anyway, this will cause cx_freeze
to find proper version of uic
and the script should build correctly.