[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt]  PyQt application frozen if run in localhost;
From:       Arrieta <superjuanelo () gmail ! com>
Date:       2011-06-23 16:26:52
Message-ID: 31911115.post () talk ! nabble ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Consider the following PyQT application (helloworld.py):


import sys
from PyQt4 import QtGui

def main():
    app = QtGui.QApplication(sys.argv)
    win = QtGui.QPushButton("Hello, World!")
    win.show()
    return app.exec_()

if __name__ == "__main__":
    sys.exit(main())


If I run ($python helloworld.py) this application from a shell in my
computer, I see the main container for the button, but the button itself
never renders. After a few clicks on the [x] of the main container, I
receive a warning window stating:


Window with title "helloworld.py" is not responding. This window belongs to
application helloworld.py (PID=2000, hostname=localhost). Do you wish to
terminate this application? (All unsaved data in this application will be
lost.) [Yes] [No]

If I then use the same shell window to SSH to another machine in our network
and run the exact same program (we have an NFS file system; I see the same
files in every machine) it runs as expected. In fact, even if I SSH back to
my original computer I can run the application.


This happens with all the PyQt applications I have developed for my group,
and it happens on every computer in our network: the applications won't run
locally, but run perfectly fine if the user is connected to the terminal via
SSH (let me insist, even if SSH'd to your local, physical computer!)


Do you have any suggestion for debugging/tracking down this problem?


Many thanks.


Python 2.6.5
Qt 4.6.2
Red Hat Linux Enterprise Edition (4)


-- 
View this message in context: \
http://old.nabble.com/PyQt-application-frozen-if-run-in-localhost--OK-if-SSH%27d-to-another-host-tp31911115p31911115.html
 Sent from the PyQt mailing list archive at Nabble.com.


[Attachment #5 (text/html)]

<p>Consider the following PyQT application (helloworld.py):</p>
<pre>
import sys
from PyQt4 import QtGui

def main():
    app = QtGui.QApplication(sys.argv)
    win = QtGui.QPushButton("Hello, World!")
    win.show()
    return app.exec_()

if __name__ == "__main__":
    sys.exit(main())
</pre>
<p>
If I run (<code>$python helloworld.py</code>) this application from a shell in my \
computer, I see the main container for the button, but the button itself never \
renders. After a few clicks on the [x] of the main container, I receive a warning \
window stating: </p>
<blockquote>
Window with title <strong>"helloworld.py"</strong> is not responding. This window \
belongs to application <strong>helloworld.py</strong> (PID=2000, hostname=localhost). \
Do you wish to terminate this application? (All unsaved data in this application will \
be lost.) [Yes] [No] </blockquote>
<p>If I then use the same shell window to SSH to another machine in our network and \
run the exact same program (we have an NFS file system; I see the same files in every \
machine) it runs as expected. In fact, even if I SSH back to my original computer I \
can run the application.</p> <p>
This happens with all the PyQt applications I have developed for my group, and it \
happens on every computer in our network: the applications won't run locally, but run \
perfectly fine if the user is connected to the terminal via SSH (let me insist, even \
if SSH'd to your local, physical computer!)</p> <p>
Do you have any suggestion for debugging/tracking down this problem?</p>
<p>
Many thanks.</p>
<p><ul>
<li>Python 2.6.5</li>
<li>Qt 4.6.2</li>
<li>Red Hat Linux Enterprise Edition (4)</li>
</ul>
</p>
<br><hr align="left" width="300">
View this message in context: <a \
href="http://old.nabble.com/PyQt-application-frozen-if-run-in-localhost--OK-if-SSH%27d-to-another-host-tp31911115p31911115.html">PyQt \
application frozen if run in localhost; OK if SSH'd to another host</a><br> Sent from \
the <a href="http://old.nabble.com/PyQt-f23444.html">PyQt mailing list archive</a> at \
Nabble.com.<br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic