[Python-bugs-list] [ python-Bugs-431191 ] termios, Python 2.1 and 1.5.2, AIX, SCO

noreply@sourceforge.net noreply@sourceforge.net
Thu, 07 Jun 2001 11:59:08 -0700


Bugs item #431191, was updated on 2001-06-07 11:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431191&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Kent (mikent)
Assigned to: Nobody/Anonymous (nobody)
Summary: termios, Python 2.1 and 1.5.2, AIX, SCO

Initial Comment:
Getting the 'termios' module to compile or work on
various platforms is like trying to pass a bowling
ball.

We need to input no-echoing passwords, therefore the
need for termios.

Building Python 2.1 on aix-4.3-2.1, with termios turned
on in Modules/Setup, results in undefined symbol errors
for 'VDISCARD' and 'VWERASE'.

Building Python 1.5.2 on the same platform, with
termios turned on, works fine, and gives us non-echoing
passwords via getpass.

Building Python 1.5.2 on SCO Open Server 5, with
termios turned on, yields echoing passwords.  Hmm. 
Upon further investingation (browsing the getpass.py
source code), we found that the configure script
believes this platform to be sco_sv3, and that the
necessary file Lib/plat_sco_sv3/TERMIOS.py was
missing.  Running the 'regen' script in that directory
created TERMIOS.py, which allowed a build of python
with termios turned on.  However, when testing getpass,
it would now generate a termios.error exception.  From
investigating this (debugging termios.c), we determined
that a call to tcsetattr was returning an error code
and setting errno to 22 (Invalid argument).

We gave up at that point.

Wasn't one of the selling points of Python the ability
to write code that would run on multiple platforms?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431191&group_id=5470