django - gethostbyaddr() raises UnicodeDecodeError in Python 3 -
i'm trying build django project python 3.4.1. manage.py runserver raises unicodedecodeexception.
how can resolved? see below (trimmed) traceback:
traceback (most recent call last):   file "c:\python34\lib\socketserver.py", line 429, in __init__     self.server_bind()   file "c:\python34\lib\site-packages\django\core\servers\basehttp.py", line 121 , in server_bind     super(wsgiserver, self).server_bind()   file "c:\python34\lib\wsgiref\simple_server.py", line 50, in server_bind     httpserver.server_bind(self)   file "c:\python34\lib\http\server.py", line 135, in server_bind     self.server_name = socket.getfqdn(host)   file "c:\python34\lib\socket.py", line 460, in getfqdn     hostname, aliases, ipaddrs = gethostbyaddr(name) unicodedecodeerror: 'utf-8' codec can't decode byte 0xcf in position 12: invalid  continuation byte per request, hostname:
c:\users\anatoliyvik>hostname anatoliyvik-ПК 
changing hostname no longer include cyrillic symbols resolves problem.
thanks @lafada guidance.
Comments
Post a Comment