#28487: runserver crashes with UncodeDecodeError as of Django 1.11.4
-------------------------------------+-------------------------------------
Reporter: newerBkl | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: 1.11
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by newerBkl):
Replying to [comment:3 Tim Graham]:
> You can add `print(key, new_environ[key])` before the line with
`force_bytes(new_environ[key], encoding=encoding)` to see the problematic
value.
**Thanks , here is the output**
{{{
('TMP', 'C:\\Users\\100000\\AppData\\Local\\Temp')
('PSMODULEPATH',
'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\')
('PROCESSOR_LEVEL', '6')
('_OLD_VIRTUAL_PATH', 'C:\\Program Files (x86)\\Common
Files\\NetSarang;C:\\Python27\\;C:\\Python27\\Scripts;C:\\Windows\\system32;C:\\Windows
;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program
Files (x86)\\\xb8\xbb\xbb\xf9\xd0\xfd\xb7\xe7\xbf\xc
6\xbc\xbc\\appSys01;C:\\Program Files
(x86)\\\xb8\xbb\xbb\xf9\xd0\xfd\xb7\xe7\xbf\xc6\xbc\xbc\\appSys02;C:\\Program
Files (x86)\\\xb8\xbb\xbb\
xf9\xd0\xfd\xb7\xe7\xbf\xc6\xbc\xbc\\appSys01;C:\\Program Files
(x86)\\\xb8\xbb\xbb\xf9\xd0\xfd\xb7\xe7\xbf\xc6\xbc\xbc\\appSys02;C:\\Program
Files
(x86)\\\xb8\xbb\xbb\xf9\xd0\xfd\xb7\xe7\xbf\xc6\xbc\xbc\\appSys03;C:\\Program
Files\\TortoiseSVN\\bin;;C:\\Program Files\\Microsoft VS C
ode\\bin')
Traceback (most recent call last):
}}}
**
there was a path with Chinese in my system_path.After removing ,it works
well**
--
Ticket URL: <https://code.djangoproject.com/ticket/28487#comment:4>
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/066.5c82a8885864d1186f2417f377cc3585%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.