This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Django tutorial 2 not able to create a superuser on Windows 7
Type: compile error Stage: resolved
Components: Demos and Tools Versions: Python 3.5
Status: closed Resolution: duplicate
Dependencies: Superseder: msvcrt could not be imported
View: 23995
Assigned To: Nosy List: JohanPretorius, r.david.murray
Priority: normal Keywords:

Created on 2015-04-22 08:17 by JohanPretorius, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg241787 - (view) Author: Johan Pretorius (JohanPretorius) Date: 2015-04-22 08:17
When running the $python createsuperuser command the following is returned:
C:\Users\johanP\mysite>python cre
Username (leave blank to use 'johanp'):
Email address: ja****
Traceback (most recent call last):
  File "", line 10, in <module>
  File "C:\Program Files\Python 3.5\lib\site-packages\djan", line 338, in execute_from_command_line
  File "C:\Program Files\Python 3.5\lib\site-packages\djan", line 330, in execute
  File "C:\Program Files\Python 3.5\lib\site-packages\djan", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
ment\commands\", line 50, in execute
    return super(Command, self).execute(*args, **options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan", line 441, in execute
    output = self.handle(*args, **options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
ment\commands\", line 124, in handle
    password = getpass.getpass()
  File "C:\Program Files\Python 3.5\lib\", line
AttributeError: module 'msvcrt' has no attribute 'putwch'

The command picks up my AD credentials and doesn't request a password. I can create a super user in python using the following link:
But the admin site won't start using this method.
I'm running Python 3.5, Django 1.8 on Windows 7 Professional.
msg241796 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-04-22 12:55
This is a duplicate of issue 23995.
Date User Action Args
2022-04-11 14:58:15adminsetgithub: 68211
2015-04-22 12:55:44r.david.murraysetstatus: open -> closed

superseder: msvcrt could not be imported

nosy: + r.david.murray
messages: + msg241796
resolution: duplicate
stage: resolved
2015-04-22 08:17:50JohanPretoriuscreate