#28487: Django1.11.4 Cannot run `manage.py runserver` on Windows
(UnicodeDecodeError:)
-------------------------------------+-------------------------------------
               Reporter:  newerBkl   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  1.11
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 My env is windows 7 x64 Python 2.7, after upgrade to 1.11.4 , i can't run
 manager.py runserver
 In 1.11.3 is ok,anything with "Fixed crash in runserver’s autoreload with
 Python 2 on Windows with non-str environment variables (#28174)."
 ============================================================

 {{{
 (users) D:\django_test\dddd>pip install --upgrade django
 Collecting django
   Using cached Django-1.11.4-py2.py3-none-any.whl
 Requirement already up-to-date: pytz in d:\env_python\users\lib\site-
 packages (from django)
 Installing collected packages: django
   Found existing installation: Django 1.11.3
     Uninstalling Django-1.11.3:
       Successfully uninstalled Django-1.11.3
 Successfully installed django-1.11.4

 (users) D:\django_test\dddd>python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 22, in <module>
     execute_from_command_line(sys.argv)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\__init__.py", line 363, in
 execute_from_command_line
     utility.execute()
   File "D:\env_python\users\lib\site-
 packages\django\core\management\__init__.py", line 355, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\base.py", line 283, in run_from_argv
     self.execute(*args, **cmd_options)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\commands\runserver.py", line 62, in
 execute
     super(Command, self).execute(*args, **options)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\base.py", line 330, in execute
     output = self.handle(*args, **options)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\commands\runserver.py", line 101, in
 handle
     self.run(**options)
   File "D:\env_python\users\lib\site-
 packages\django\core\management\commands\runserver.py", line 110, in run
     autoreload.main(self.inner_run, None, options)
   File "D:\env_python\users\lib\site-packages\django\utils\autoreload.py",
 line 341, in main
     reloader(wrapped_main_func, args, kwargs)
   File "D:\env_python\users\lib\site-packages\django\utils\autoreload.py",
 line 312, in python_reloader
     exit_code = restart_with_reloader()
   File "D:\env_python\users\lib\site-packages\django\utils\autoreload.py",
 line 294, in restart_with_reloader
     str_value = force_bytes(new_environ[key], encoding=encoding)
   File "D:\env_python\users\lib\site-packages\django\utils\encoding.py",
 line 124, in force_bytes
     return s.decode('utf-8', errors).encode(encoding, errors)
   File "D:\env_python\users\lib\encodings\utf_8.py", line 16, in decode
     return codecs.utf_8_decode(input, errors, True)
 UnicodeDecodeError: 'utf8' codec can't decode byte 0xb8 in position 202:
 invalid start byte
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28487>
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/051.c1ae75268b14e2ff71cbbba42c23573b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to