AnsweredAssumed Answered

Using getpass in python console widget echos password in Windows (Python 2.7 or earlier)

Question asked by hlzhang525 on Nov 2, 2014
Latest reply on Nov 4, 2014 by bixb0012

Hi, all

 

When running the sample at ArcGIS Help (10.2, 10.2.1, and 10.2.2) , does anyone have this issue?


Using getpass in python console widget echos password in Windows (Python 2.7 or earlier)

 

The code is attached.

 

+++++++++++++++

 

What steps will reproduce the problem?

1.Open a python interpreter in the console

2.type the following:

>>> import getpass

>>> notMyPassword = getpass.getpass("type your password: ")

password

 

What is the expected output?

 

It shows the prompt "don't type your password: " but the password characters are not echoed to the console window

 

What do you see instead?

 

getpass displays a warning that it couldn't control echo on the terminal, and that password input may be echoed.

Outcomes