Oct-02-2023, 02:57 PM
(This post was last modified: Oct-02-2023, 02:57 PM by EarthAndMoon.)
When I call getpass.getpass(), I get this error:
Traceback (most recent call last):
_File "<stdin>", line 1, in <module>
_File "C:\Users\surfer\AppData\Local\Programs\Python\Python311\Lib\getpass.py", line 48, in unix_getpass
__fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
-________________________________^^^^^^^^^^^^
AttributeError: module 'os' has no attribute 'O_NOCTTY'
(I had to use bold text and white/invisible text (for indentation) because the code option in the question posting menu didn't work)
I am using Python 3.11.1 on Windows 11.
Traceback (most recent call last):
_File "<stdin>", line 1, in <module>
_File "C:\Users\surfer\AppData\Local\Programs\Python\Python311\Lib\getpass.py", line 48, in unix_getpass
__fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
-________________________________^^^^^^^^^^^^
AttributeError: module 'os' has no attribute 'O_NOCTTY'
(I had to use bold text and white/invisible text (for indentation) because the code option in the question posting menu didn't work)
I am using Python 3.11.1 on Windows 11.