termios.tcgetattr(fd) error: (22, 'Invalid argument')

2005-11-19 Thread Petr Jakes
On my box (Fedora Core4, Python 2.4.1) I am getting following error: >>> import termios, sys >>> fd = sys.stdin.fileno() >>> oldSettings = termios.tcgetattr(fd) Traceback (innermost last): File "", line 1, in ? error: (22, 'Invalid argument') Thanks for your comments. Petr Jakes -- http://mail

Re: termios.tcgetattr(fd) error: (22, 'Invalid argument')

2005-11-19 Thread Petr Jakes
To provide some feedback: As Grant Edwards posted in this list, I was running my code inside of IDE that replaces sys.stdin with some other. While running the program from a shell prompt, everything goes fine. Petr Jakes -- http://mail.python.org/mailman/listinfo/python-list

Re: termios.tcgetattr(fd) error: (22, 'Invalid argument')

2005-11-21 Thread Sinan Nalkaya
Petr Jakes wrote: >To provide some feedback: >As Grant Edwards posted in this list, I was running my code inside of >IDE that replaces sys.stdin with some other. While running the program >from a shell prompt, everything goes fine. >Petr Jakes > > > have you tried it with root account ? -- h

Re[2]: termios.tcgetattr(fd) error: (22, 'Invalid argument')

2005-11-21 Thread Petr
>>To provide some feedback: >>As Grant Edwards posted in this list, I was running my code inside of >>IDE that replaces sys.stdin with some other. While running the program >>from a shell prompt, everything goes fine. >>Petr Jakes >> >> >> SN> have you tried it with root account ? Yes, I did.