you need to add paths to folder with installed python to PYTHONPATH and PYTHONHOME in Control center / System / Advanced / System Paths<br><br><br><br><div class="gmail_quote">2009/1/16 Doug Hackworth <span dir="ltr"><<a href="mailto:doug.hackworth@vanderbilt.edu">doug.hackworth@vanderbilt.edu</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Greetings, everyone. Please excuse this question's elementary nature... Neither web searching nor experimentation has yielded a solution thus far, and doubtless someone here will be able to answer it right away.<br>
<br>
I have developed a PyQt4 application on my Ubuntu machine, and it works fine, no problems. Now I want another user to be able to use it on his Windows XP machine, so on his computer I do the following, in this order:<br>
<br>
1. Install Python 2.6<br>
2. Install the PyQt4 for Python 2.6<br>
<br>
Both installations were successful, and I can run the PyQt example programs that are installed. Also I can see, in the Python installation directory, that Lib/site-packages/PyQt4 exists and has appropriate-looking stuff in it.<br>
<br>
And yet -- I bet you can see this coming -- I cannot get my application to execute. Doubleclicking on my_app.py produces an instantaneously visible DOS shell and no application, and renaming the file to my_app.pyw also has no effect (less the flashing DOS shell). Entering a DOS shell and trying to run the program from there by means of a "python my_app.py" command simply results in:<br>
<br>
Traceback (most recent call last):<br>
File "my_app.py", line 2, in <module><br>
from PyQt4 import QtCore, QtGui<br>
ImportError: No module named PyQt4<br>
<br>
So is this merely an issue of an undefined PYTHONPATH variable, or similar? I was expecting that things in Lib/site-packages would be automatically visible to Python... Is this not the case?<br>
<br>
I'm sure I'm missing something very simple. Thoughts?<br>
<br>
Thanks,<br>
Doug<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div><br>