Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getpass.getpass error
#2
The problem is the name of your file - getpass.py it shadows the package getpass that you want to import and use getpass.getpass(). Rename your file.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
getpass.getpass error - by Juice1277 - Jan-21-2021, 06:49 PM
RE: getpass.getpass error - by buran - Jan-21-2021, 06:52 PM
RE: getpass.getpass error - by Juice1277 - Jan-21-2021, 09:51 PM
RE: getpass.getpass error - by Juice1277 - Jan-21-2021, 10:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY' EarthAndMoon 4 946 Oct-03-2023, 02:00 PM
Last Post: deanhystad
  getpass ComputerAstronaut 1 1,653 Nov-16-2020, 01:16 AM
Last Post: bowlofred
  Error "an integer is required" in getpass.getuser(). Nirelg 5 5,578 Mar-20-2017, 04:19 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020