[SOLVED] py2exe error when trying to build Windows installer

Post here to get support
Post Reply
MitchMan
Beginner
Posts: 5
Joined: Fri Jan 02, 2015 9:47 am
Location: United Kingdom

[SOLVED] py2exe error when trying to build Windows installer

Post 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
Crazyflie 2.0
Crazyradio PA
CF LED-Ring Expansion
Breakout Expansion Board
Prototyping Expansion Board
Debug Adapter Kit
Sony Dual Shock 4
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: py2exe error when trying to build Windows installer

Post 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
MitchMan
Beginner
Posts: 5
Joined: Fri Jan 02, 2015 9:47 am
Location: United Kingdom

Re: py2exe error when trying to build Windows installer

Post by MitchMan »

Arnaud - Many thanks indeed, this has solved it!

MitchMan
Crazyflie 2.0
Crazyradio PA
CF LED-Ring Expansion
Breakout Expansion Board
Prototyping Expansion Board
Debug Adapter Kit
Sony Dual Shock 4
Post Reply