Page 1 of 1

[SOLVED] py2exe error when trying to build Windows installer

Posted: Fri Jan 02, 2015 1:17 pm
by MitchMan
I am having a problem when I try to build any repository of cfclient (including 2014.12.1) into a Windows installer/exe. All pre-requisites from the Bitcraze instructions have been installed.

I get the following error when running setup.py py2exe :-

Image

Any help would be greatly appreciated to allow me to make an installer.

MitchMan

Re: py2exe error when trying to build Windows installer

Posted: Mon Jan 05, 2015 9:18 am
by arnaud
This is a classical bug with py2exe/pyqt, the solution is to remove the folder port_v3 (the one indicated in the error message).

This happens because pyqt installs python3 packages in a python2 installation, which does not work when py2exe tries to load them.

Best regards,
Arnaud

Re: py2exe error when trying to build Windows installer

Posted: Fri Jan 09, 2015 3:53 pm
by MitchMan
Arnaud - Many thanks indeed, this has solved it!

MitchMan