Thanks for the response Albert!

For some wierd reason I can see the parse module in Eclipse, but for some reason, py2exe still complains that PyQt4.elementtree.ElementTree is missing and the executable throws an exception 'ImportError: cannot import name parse'.

I checked the environment and I'm using the same python2.5 install for Eclipse and command line py2exe.

Any thoughts?
-Scott


Albert Cervera i Areny wrote:
A Dimecres, 25 de novembre de 2009, Scott Ballard va escriure:
  
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?
    

Sure. Simply adding:

from xml.etree.ElementTree import parse, SubElement

in your main application .py file should do.

  
Any helpful tips or tutorials would be appreciated.

Many thanks!
-Scott


_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

    


  
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to