Re: Interrupted system call

2014-11-17 Thread Chris Angelico
On Mon, Nov 17, 2014 at 7:55 PM, Peter Otten <__pete...@web.de> wrote: > I'd suggest a more conservative path: if available install the version that > comes with your distribution. > > $ sudo apt-get python3-serial > > might do the job. Only if the Python to install to was also the distro-installe

Re: Interrupted system call

2014-11-17 Thread Peter Bell
On 17/11/14 16:31, Chris Angelico wrote: On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell wrote: Is there a better way to interface to a serial port from Python 3? I've found a reference in the PSF 3.3.6 FAQ which points to pyserial on sourceforge. ... a solution to this. I would suggest lookin

Re: Interrupted system call

2014-11-17 Thread Peter Otten
Chris Angelico wrote: > On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell > wrote: >> Many thanks for your helpful response, Chris. >> >> On 17/11/14 06:13, Chris Angelico wrote: >>> >>> On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell >>> wrote: File "/usr/lib/python3.4/site-packages/serial/s

Re: Interrupted system call

2014-11-17 Thread Chris Angelico
On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell wrote: > Many thanks for your helpful response, Chris. > > On 17/11/14 06:13, Chris Angelico wrote: >> >> On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell >> wrote: >>> >>>File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line >>> 480, >>> i

Re: Interrupted system call

2014-11-17 Thread Peter Bell
Many thanks for your helpful response, Chris. On 17/11/14 06:13, Chris Angelico wrote: On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell wrote: File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 480, in read if e[0] != errno.EAGAIN: TypeError: 'InterruptedError' object is no

Re: Interrupted system call

2014-11-16 Thread Chris Angelico
On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell wrote: > File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 480, > in read > if e[0] != errno.EAGAIN: > TypeError: 'InterruptedError' object is not subscriptable > ===

Interrupted system call

2014-11-16 Thread Peter Bell
last): File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 461, in read ready,_,_ = select.select([self.fd],[],[], self._timeout) InterruptedError: [Errno 4] Interrupted system call During handling of the above exception, another exception occurred: Traceback (most r

Re: interrupted system call w/ Queue.get

2011-03-22 Thread Philip Winston
On Feb 18, 10:23 am, Jean-Paul Calderone wrote: > The exception is caused by a syscall returning EINTR.  A syscall will > return EINTR when a signal arrives and interrupts whatever that > syscall > was trying to do.  Typically a signal won't interrupt the syscall > unless you've installed a signal

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Jean-Paul Calderone
On Feb 17, 8:46 pm, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes.  Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What ca

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Roy Smith
In article , Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes. Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes th

Re: interrupted system call w/ Queue.get

2011-02-17 Thread Dan Stromberg
On Thu, Feb 17, 2011 at 5:46 PM, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes. Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > >

Re: interrupted system call w/ Queue.get

2011-02-17 Thread James Mills
On Fri, Feb 18, 2011 at 11:46 AM, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes.  Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > >

interrupted system call w/ Queue.get

2011-02-17 Thread Philip Winston
We have a multiprocess Python program that uses Queue to communicate between processes. Recently we've seen some errors while blocked waiting on Queue.get: IOError: [Errno 4] Interrupted system call What causes the exception? Is it necessary to catch this exception and manually retry the

Re: What is the actual type of "interrupted system call"?

2009-06-10 Thread Jean-Michel Pichavant
mrstevegross wrote: exceptions.EOFError exceptions.ReferenceError exceptions.ZeroDivisionError ... exceptions.NotImplementedError exceptions.UnicodeError exceptions.__str__ Is there a single parent exception to all those? Or should I just write it as: try: ... catch Exception: ... Than

Re: What is the actual type of "interrupted system call"?

2009-06-09 Thread mrstevegross
> That works for me.  There isn't an "InterruptedSystemCall" error or > equivalent in the standard exception hierarchy.  EnvironmentError is > the parent of OSError & IOError, which is where you'll most likely be > encountering that state. Thanks! --Steve -- http://mail.python.org/mailman/listinf

Re: What is the actual type of "interrupted system call"?

2009-06-09 Thread Jeff McNeil
On Jun 9, 2:22 pm, mrstevegross wrote: > I'm trying to write a try/catch block to handle an "interrupted system > call". However, I can't seem to locate information on the actual > typename of the exception. Does anyone know what it would be? I want > my

Re: What is the actual type of "interrupted system call"?

2009-06-09 Thread Jean-Michel Pichavant
mrstevegross wrote: I'm trying to write a try/catch block to handle an "interrupted system call". However, I can't seem to locate information on the actual typename of the exception. Does anyone know what it would be? I want my code to look like this: try: ... except I

Re: What is the actual type of "interrupted system call"?

2009-06-09 Thread mrstevegross
> exceptions.EOFError exceptions.ReferenceError exceptions.ZeroDivisionError >... > exceptions.NotImplementedError exceptions.UnicodeError exceptions.__str__ Is there a single parent exception to all those? Or should I just write it as: try: ... catch Exception: ... Thanks, --Steve -- http://

What is the actual type of "interrupted system call"?

2009-06-09 Thread mrstevegross
I'm trying to write a try/catch block to handle an "interrupted system call". However, I can't seem to locate information on the actual typename of the exception. Does anyone know what it would be? I want my code to look like this: try: ... except InterruptedSystemCall # w

Re: Select, interrupted system call, log rotation?

2008-12-07 Thread Vinay Sajip
On Dec 6, 8:39 pm, Rainy <[EMAIL PROTECTED]> wrote: > I got an interrupted system call exception in select and I don't know > what could have caused it. Here's the error: > > select.select(inputs, [], [], 9) > error: (4, 'Interrupted system call&#x

Select, interrupted system call, log rotation?

2008-12-06 Thread Rainy
I got an interrupted system call exception in select and I don't know what could have caused it. Here's the error: select.select(inputs, [], [], 9) error: (4, 'Interrupted system call') Caught an exception, shutting down... It's py2.3, on mach architecture. I&#x

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Gabriel Genellina
En Fri, 16 Feb 2007 18:07:40 -0300, <[EMAIL PROTECTED]> escribió: > i don't have any signal handlers in my code, but i have no idea what > is going on in the internals of the pyQt framework that i'm using for > the GUI. > > p = subprocess.Popen('mycommand', shell=True, stdin=subprocess.PIPE, > std

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > i don't have any signal handlers in my code, but i have no idea what > is going on in the internals of the pyQt framework that i'm using for > the GUI. > > as far as simply ignoring the exception, that does not seem to work. > for instan

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread chadrik
i don't have any signal handlers in my code, but i have no idea what is going on in the internals of the pyQt framework that i'm using for the GUI. as far as simply ignoring the exception, that does not seem to work. for instance, here's some code i've tried: p = subprocess.Popen('mycommand', sh

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > i'm getting the same error when trying to read results from popen2 > within a pyQt window. is this a threading issue? is my pyQt window > responsible for interrupting the read? i'm fairly new to python so > i'm struggling to figure this

Re: IOError: [Errno 4] Interrupted system call

2007-02-15 Thread Gabriel Genellina
En Thu, 15 Feb 2007 23:57:29 -0300, <[EMAIL PROTECTED]> escribió: > i'm getting the same error when trying to read results from popen2 > within a pyQt window. is this a threading issue? is my pyQt window > responsible for interrupting the read? i'm fairly new to python so > i'm struggling to fig

Re: IOError: [Errno 4] Interrupted system call

2007-02-15 Thread chadrik
i'm getting the same error when trying to read results from popen2 within a pyQt window. is this a threading issue? is my pyQt window responsible for interrupting the read? i'm fairly new to python so i'm struggling to figure this out. can you recommend any possible methods of preventing this? fo

Re: IOError: [Errno 4] Interrupted system call

2007-02-07 Thread Donn Cave
t;./mkt.py", line 361, in process > self.player.play(command[1]) > File "./mkt.py", line 107, in play > if self.is_playing(): > File "./mkt.py", line 78, in is_playing > info = rfd.readlines() > IOError: [Errno 4] Interrupted system call > >

Re: IOError: [Errno 4] Interrupted system call

2007-02-06 Thread Gabriel Genellina
player.play(command[1]) > File "./mkt.py", line 107, in play > if self.is_playing(): > File "./mkt.py", line 78, in is_playing > info = rfd.readlines() > IOError: [Errno 4] Interrupted system call I don't know if this is a valid behavior or not,

IOError: [Errno 4] Interrupted system call

2007-02-06 Thread Marco
File "./mkt.py", line 78, in is_playing info = rfd.readlines() IOError: [Errno 4] Interrupted system call why? Thank you! -- LinuX Power -- http://mail.python.org/mailman/listinfo/python-list

IOError: [Errno 4] Interrupted system call

2007-02-05 Thread Marco
File "./mkt.py", line 78, in is_playing info = rfd.readlines() IOError: [Errno 4] Interrupted system call why? Thank you! -- LinuX Power -- http://mail.python.org/mailman/listinfo/python-list