#27657: Getting crash when using the runserver command on Windows 10 in
PowerShell
following update to Python 3.6
--------------------------------------+------------------------
Reporter: horatius83 | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+------------------------
Any time I run the command **python .\manage.py runserver** Python
crashes. This behavior only seems to occur in PowerShell (even in Admin
mode) but it runs fine in the regular command line.
{{{
PS C:\Users\Tyler Durden\Documents\GitHub\debt_calculator> python -u -m
trace -t .\manage.py runserver >> ./python_error.log
Traceback (most recent call last):
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 193,
in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 85,
in _run_code
exec(code, run_globals)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\trace.py", line 742,
in <module>
main()
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\trace.py", line 730,
in main
t.runctx(code, globs, globs)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\trace.py", line 469,
in runctx
exec(cmd, globals, locals)
File ".\manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\__init__.py", line 367, in
execute_from_command_line
utility.execute()
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\__init__.py", line 330, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\commands\runserver.py", line 58, in
execute
super(Command, self).execute(*args, **options)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\base.py", line 345, in execute
output = self.handle(*args, **options)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\commands\runserver.py", line 97, in handle
self.run(**options)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\core\management\commands\runserver.py", line 106, in run
autoreload.main(self.inner_run, None, options)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\utils\autoreload.py", line 333, in main
reloader(wrapped_main_func, args, kwargs)
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\utils\autoreload.py", line 304, in python_reloader
exit_code = restart_with_reloader()
File "C:\Users\Tyler
Durden\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\django\utils\autoreload.py", line 285, in restart_with_reloader
args = [sys.executable] + ['-W%s' % o for o in sys.warnoptions] +
sys.argv
TypeError: can only concatenate list (not "tuple") to list
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27657>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.94876152cb1b34717621d03d701d1f3c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.