Solve GetPassWarning – Can not control echo on the terminal. Warning Password input may be echoed.

GetPassWarning – Can not control echo on the terminal. Warning: Password input may be echoed. is an error which occurs in Python because you should be using an actual terminal when IDLE is not enough.

In this article I am going to show you why this error is happening and how you can solve this error. I am also going to share with you other possible solutions ( if any ) which have worked for many developers who suffered from this error.

Explaining the Error : GetPassWarning – Can not control echo on the terminal. Warning Password input may be echoed.

First of all, let us understand the issue, the issue happens when we should be using an actual terminal when IDLE is not enough. As IDLE is not really a terminal.

getpass will never work with a Python IDLE.

Bellow is an example of the error message one can get after trying to run getpass on the IDLE.

Solve GetPassWarning - Can not control echo on the terminal. Warning Password input may be echoed-problem-banner

Bellow we will take care of the error using one possible solution which will help most people get rid of the error.

Solution : Correctly use an actual terminal

The first and only solution is to use an actual terminal.

This solution is self explanatory, the command you are trying to run is not designed to run on an IDLE.

Try using a terminal like cmd and the error will disapear.

You can open the terminal on windows for example by typing cmd in the search field at the buttom.

Then run your code, by entering the command in the terminal:

                                                                       #
# enter this command in the terminal
python3 test.py
                                                                       #

If the solutions above helped you, consider supporting us on Kofi, any help is appreciated.

Summing-up

This is the end of our article, I hope this helped you solve the error : GetPassWarning – Can not control echo on the terminal. Warning: Password input may be echoed or at least showed you the way. You can donate to our Kofi account but you do not Have to.

Keep coding and cheers. If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/