<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">Thanks for the response Albert!<br>
<br>
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'.<br>
<br>
I checked the environment and I'm using the same python2.5 install for
Eclipse and command line py2exe.<br>
<br>
Any thoughts?<br>
-Scott<br>
<br>
</font></font><br>
Albert Cervera i Areny wrote:
<blockquote cite="mid:200911250215.55847.albert@nan-tic.com" type="cite">
<pre wrap="">A Dimecres, 25 de novembre de 2009, Scott Ballard va escriure:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap=""><!---->
Sure. Simply adding:
from xml.etree.ElementTree import parse, SubElement
in your main application .py file should do.
</pre>
<blockquote type="cite">
<pre wrap="">Any helpful tips or tutorials would be appreciated.
Many thanks!
-Scott
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>