Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#20021 closed Bug (invalid)

create_superuser fails on Windows XP/Python 3.2

Reported by: tim.needham@… Owned by: nobody
Component: contrib.auth Version: 1.5
Severity: Normal Keywords: enter yes no
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

You can't seem to create a new project 1.5, on Windows XP (I've no choice!) running Python 3.2....

The trouble seems to be here:

\contrib\auth\management\init.py

The "create_superuser" function depends on input()... however, it's suffixed with an odd character (new line or similar?) that doesn't to equate to "no" or "yes" and so goes in an infinite loop. This project creation.

Throwing a .rstrip() onto the end of input() seems to fix it!

Many thanks

Tim

Change History (3)

comment:1 Changed 2 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from create)superuse fails on Windows XP/Python 3.2 to create_superuser fails on Windows XP/Python 3.2

comment:2 Changed 2 years ago by aaugustin

  • Resolution set to invalid
  • Status changed from new to closed

That's a bug in Python 3.2: http://bugs.python.org/issue11272

It's fixed in Python 3.2.1. Can you upgrade?

Since the bug isn't in Django, I'm going to close this ticket.

comment:3 Changed 2 years ago by tim.needham@…

That's cool, thanks for the help and speedy response... Might be worth mentioning Django 1.5 supports >= Python 3.2.1 on the front/download page?

Thanks again.

Tim

Note: See TracTickets for help on using tickets.
Back to Top