PyQt4: Interrupted system call while calling commands.getoutput() in timer?

It appears that a signal is being delivered whilst the pipe is still reading. So try stopping the timer before calling setLabelText(), and then restart it again afterwards. EDIT You should also try rewriting your code to use subprocess instead of the deprecated commands module.

For example: pipe = subprocess. Popen('curl', '--ntlm', '-sn', 'http://some.local. Resource', stdout=subprocess.

PIPE) output = pipe.communicate()0.

I tried to kill timer in timerEvent() right before setLabelText() - the same result: interrupted system call. I do not understand anything now. Originally it was a Gnome applet and it worked perfectly and did not produce any errors with this strange interruption... :-/ – grekhss Oct 14 at 12:20 An interesting thing is that reading a huge file does not produce any troubles for the script.

Very strange. – grekhss Oct 14 at 12:47 @grekhss. Is it possible to eliminate plasma from the equation and reproduce the error with a simpler, pure pyqt example?

– ekhumoro Oct 14 at 12:52 I tried to create a small example and found that problem disappears when I replace our local resource with any site in WWW (e.g. Docs.python. Org/faq/general. Html).

Looks like the problem is not in PyQt itself, but in combination of it with curl and local resource. – grekhss Oct 14 at 5:27 Thumbs up for subprocess module! I have replaced commands.getoutput() with subprocess.

Popen/pipe. Communicate and it worked perfectly! Thanks a lot for the hint!

– grekhss Oct 14 at 6:12.

It appears that a signal is being delivered whilst the pipe is still reading.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions