[PyQt] pyqt, py2exe and ui files

Scott Ballard scott at scottballard.net
Wed Nov 25 01:02:11 GMT 2009

I have a Python/PyQt script that is loading a .ui file. If I use py2exe 
to turn it into an executable I get errors about missing modules like 
PyQt4.elementtree.ElementTree. If I convert the .ui files using pyuic4 
and embed them into the Python script then py2exe works just fine.

Has anyone figured out how to use .ui files with py2exe?

Any helpful tips or tutorials would be appreciated.

Many thanks!

More information about the PyQt mailing list