Intermittent Failure on Serial Port
Serge Orlov
Serge.Orlov at gmail.com
Sat Jun 10 06:14:48 EDT 2006
H J van Rooyen wrote:
> Traceback (most recent call last):
> File "portofile.py", line 232, in ?
> ret_val = main_routine(port, pollstruct, pfifo)
> File "portofile.py", line 108, in main_routine
> send_nak(port, timeout) # so bad luck - comms error
> File "/home/hvr/Polling/lib/readerpoll.py", line 125, in send_nak
> port.flush()
> IOError: [Errno 29] Illegal seek
> close failed: [Errno 29] Illegal seek
>
> Where can I find out what the Errno 29 really means?
> Is this Python, the OS or maybe hardware?
It is from kernel: grep -w 29 `locate errno`
/usr/include/asm-generic/errno-base.h: #define ESPIPE 29
/* Illegal seek */
man lseek:
ERRORS:
ESPIPE fildes is associated with a pipe, socket, or FIFO.
RESTRICTIONS:
Linux specific restrictions: using lseek on a tty device
returns ESPIPE.
More information about the Python-list
mailing list