Intermittent Failure on Serial Port

H J van Rooyen mail at microcorp.co.za
Sun Jun 11 01:37:04 EDT 2006


Serge Orloff wrote:

| 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.


Thanks for the info - so the Kernel sometimes bombs me out - does anybody know
why the python flush sometimes calls lseek?

- Hendrik




More information about the Python-list mailing list