gethostbyaddr () gera UnicodeDecodeError no Python 3 [duplicado]
Esta pergunta já tem uma resposta aqui:
Unicodedecodeerror com servidor de execução 3 respostasEstou tentando criar um projeto Django com Python 3.4.1.manage.py runserver
gera uma UnicodeDecodeException.
Como isso pode ser resolvido? Veja o traceback abaixo (aparado):
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
Por solicitação, meu nome de host:
C:\Users\AnatoliyVik>hostname
AnatoliyVik-ПК