Cannot input password with getpass module in jython.2.5.1
2012-02-07 10:22:45 GMT
I downloaded jython 2.5.1 from www.jython.org and tried to use getpass.getpass() to input a password.
I got a warning " Problem with getpass. Passwords may be echoed."
And after I input the password and pressed Enter, the method didn't return. It just hung there.
Here is the screenshot.
I tried to debug getpass.py in Lib directory and found "import msvcrt" failed and it used default_getpass to read password and input hung at sys.stdin.readline().
My questions: 1. How to avoid the warning message?
2. Why "import msvcrt" failed? From the codes, it's for Windows and my OS is Windows XP.
3. What may cause sys.stdin.readline() to hang?
My platform infomation:
OS: Windows XP
Language: Chinese
Jython: 2.5.1
Best Regards
--------------------
Sean
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ Jython-users mailing list Jython-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users
RSS Feed