[New-bugs-announce] [issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

James Crowther report at bugs.python.org
Thu Mar 2 18:36:55 EST 2017


New submission from James Crowther:

Currently I can't use socket to resolve host names to IP addresses. This is something critical to mine as well as other applications that run over networks. 
When I attempt to do the following:

import socket
socket.getaddrinfo(hostname, None)

or 

socket.gethostbyname(hostname)

I get 

socket.gaierror: [Errno 8] nodename nor servename provided, or not known.

This works perfectly on both linux kubuntu 16.0. and windows 7,10. 

Seems that the introduction of Yosemite might be the point at which this broke by doing a simple google search for "macos socket.gethostbyname gaierror".

----------
components: Library (Lib)
messages: 288840
nosy: James Crowther
priority: normal
severity: normal
status: open
title: socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29705>
_______________________________________


More information about the New-bugs-announce mailing list