Problem with ioctl call

Isaac Barona ibarona at tid.es
Wed Jul 18 15:59:25 CEST 2001


Hi all,

I am trying to do a multi-platform serial port library in python
(linux and win95 at the moment) that I hope to release next week.

In linux, I get the following error when using an ioctl call to get
then number of bytes waiting to be read:

>>> tty.inWaiting()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "SerialPort_linux.py", line 179, in inWaiting
    n=fcntl.ioctl(self.__handle, TERMIOS.TIOCINQ)
IOError: [Errno 14] Bad address


Any help???

This happend with python 2.0.1 and python 1.5.2 over linux 2.0.34.



More information about the Python-list mailing list