Hi.<br>
I'm having exactly the same problem, with PyQt GPL 4.1.1, Python 2.5 and Qt 4.2.2.<br>
I fixed "ImportError: No module named elementtree.ElementTree" downloading and installing ElementTree, as Rick suggested. <br>
<br>
Now I'm dealing with the other error you mention (widget-plugins path
not valid), but I don't know what to do. When you mention you solved it
by editing objcreator.py, is that PyQt's source? If that's what you
mean, is there any other way to solve it? I didn't compile PyQt myself,
I
downloaded PyQt binaries, and editing PyQt's source is "ugly".<br>
<br>
Cheers,<br>
Javier<br><br><div><span class="gmail_quote">On 12/20/06, <b class="gmail_sendername">Bastian Salmela</b> <<a href="mailto:bastian.salmela@gmail.com">bastian.salmela@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi, <br>
i've ran into problem and i was hoping it gets fixed in the newer
version of qt/pyqt but doesn't seem to go away. so any information how
to make this work would be highly appreciated.<br>
<br>
problem: i'm writing application that uses uic.loadType() to load up
user interface. this all works fine when i'm launching my program from
console, but if i pack it for distribution with py2exe, i get couple of
errors running executable.<br>
<br>
1) error saying the library.zip doesn't have proper path for
widget-plugins. this i fixed by replacing plugindir path in
objcreator.py to point where they actually are located. <br>
plugindir = "c:\\Python25\\Lib\\site-packages\\PyQt4\\uic\\widget-plugins\\"<br>
so that's fine now.<br>
<br>
2) error saying "ImportErrror: No module named <span id="st" name="st" class="st">elementtree</span>.<span id="st" name="st" class="st">ElementTree</span>"<br>
after checking source again i see pyQt4 seems to try many different way
to load this, and with Idle i found out the one that works, so I
removed other stuff and just added the line that works: "from
xml.etree.cElementTree import parse"<br>
<br>
3) now there is no error about <span id="st" name="st" class="st">elementTree</span> and it gets packed nicely..
things still work on commandline, but another error says now:
"ImportError: cannot import name parse"<br>
<br>
this is where I'm stuck now.<br>
i'm far from being pro, or even good python programmer, so i need help.
please is anyone know how to make this work, i would love to hear about
it. i need to get this program packed so i can distribute it at our
workplace on several computers. <br>
<br>
p.s. i tried cxfreeze too, same errors. <br>
<br>
thank you!<br>
<br>
/me crosses fingers.<br><span class="sg">
<br>
.b<br>
</span><br>_______________________________________________<br>PyKDE mailing list <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:PyKDE@mats.imk.fraunhofer.de">PyKDE@mats.imk.fraunhofer.de</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mats.imk.fraunhofer.de/mailman/listinfo/pykde" target="_blank">http://mats.imk.fraunhofer.de/mailman/listinfo/pykde</a><br><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>Un saludo,<br><br> Javier