[Tutor] getpass

Bruce Sass Bruce Sass <bsass@freenet.edmonton.ab.ca>
Fri, 19 Jan 2001 13:49:59 -0700 (MST)


Hi,

I'm using 1.5.2 (in /usr) and ActiveState-2.0 (in /usr/local) on a
Debian 2.2 system; getpass does not echo when called like
"getpass.getpass()" from the interpreter.

> >>> import termios
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named termios
> >>>
> So that's why. But why is termios missing when getpass is 
> there? And where do I get a valid termios module?

This "termios" stuff is on this system...

~$ locate termios
/home/usr/local/ActivePython-2.0/html/lib/module-termios.html
/home/usr/local/ActivePython-2.0/html/lib/termios_Example.html
/home/usr/local/ActivePython-2.0/lib/python2.0/lib-dynload/termios.so
/home/usr/share/doc/python/html/lib/module-termios.html
/home/usr/share/doc/python/html/lib/termios_Example.html
/usr/include/asm/termios.h
/usr/include/bits/termios.h
/usr/include/linux/termios.h
/usr/include/sys/termios.h
/usr/include/termios.h
/usr/lib/python1.5/lib-dynload/termios.so
/usr/share/aclocal/termios.m4
/usr/share/man/man3/termios.3.gz
~$

There is no module to import because it is builtin.

> And for that I have no answer... anyone else have an idea?

Is your shared object (.so, .dll(?)) being shared?


- Bruce