Re: Interrupted system call

2014-11-17 Thread Chris Angelico
On Mon, Nov 17, 2014 at 7:55 PM, Peter Otten <[email protected]> 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 > ===

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 causes the exception?  Is it necessar

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 the exception? Unix divides sys

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 > > What causes the exception?

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 > > What causes the exception?