#2470 (Bug) [Errno 8] nodename nor servname provided, or not known

+1 0

Closed as Fixed
Component: DisplayCAL 3.1.1 | Milestone: 3.1.3
Created by Keiran Flynn

Last modified


OSX 10.11

Attempting to calibrate display attached not as part of desktop – via HDMI over Blackmagic Intensity Pro card – using Resolve 12.

Using i1 Display 2 and Resolve preset in Dispcal, click ‘Calibrate and Profile’ and a pop up appears with the error:

[Errno 8] nodename nor servname provided, or not known

Tried on another system (Macbook Air 2012 running most recent El Capitan release) and same error occurred. Tried on current system but running Mountain Lion instead of El Capitan and no error, but Resolve 12 does not support Mountain Lion so could not go further.

Any help very much appreciated!


dispcalGUI (application/zip | 2016-04-06 15:19:00)


8 comments on “[Errno 8] nodename nor servname provided, or not known”

  1. Hi,

    it seems your system’s DNS cache is erroneous. Resetting the network connection (e.g. turning WiFi off and on again if it’s a wireless connection), rebooting the machine, or running either dscacheutil -flushcache or sudo killall -HUP mDNSResponder in Terminal should help.

  2. Thank you Florian,

    I have tried all of your suggestions, also switched from WiFi to wired connection and still same problem. I am getting the same error on 2 different machines.

  3. IPv4 is enabled. This is the hosts file:

    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    ##
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1             localhost
    fe80::1%lo0 localhost
  4. Ok, that looks normal. What’s your system’s network name (you can see it in System Preferences -> Sharing, it ends with “.local”)? Does it match what you see if you run the following script in Terminal:

    python -c "import socket; print socket.gethostname()"

    and subsequently you can try if it gets resolved to an IP address correctly by running

    python -c "import socket; print socket.gethostbyname(socket.gethostname())"

  5. The network name is kimac.local

    When I run –

    python -c “import socket; print socket.gethostname()”

    I get nothing.

    When I run –

    python -c “import socket; print socket.gethostbyname(socket.gethostname())”

    I get –

    Keirans-iMac:~ KF$ python -c “import socket; print socket.gethostbyname(socket.gethostname())”

    Traceback (most recent call last):

    File “<string>”, line 1, in <module>

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

    So I guess we’re getting somewhere! What next boss?

  6. Interesting. I would have expected socket.gethostname() to return kimac.local in your case. That the second script fails is also weird, I would have expected it to return the placeholder IPv4 adress 0.0.0.0 for an empty hostname.

    We can try a few things on the terminal. To check the configuration:

    scutil --get LocalHostName
    scutil --get HostName

    The first line should return kimac.local, the second should return “not set”. If the first returns “not set” as well, we could fix it by
    scutil --set LocalHostName kimac.local

  7. I seem to have worked around the problem. Apologies, but when I ran

    python -c “import socket; print socket.gethostname()”

    I misread the result, it actually returned :

    Keirans-iMac:~ KF$ python -c “import socket; print socket.gethostname()”

    Keirans-iMac

    Therefore I have changed the network name under Sharing to Keirans-iMac, rebooted and it is now working. I changed the network name a few months ago to simplify it, clearly it doesn’t populate through all the things that Python references, Hostname and LocalHostname. I realise changing it back isn’t necessarily the ideal solution for everyone but it’s fine for me in order to get this working.

    Thanks so much for your help working through this, I wouldn’t have been able to get there by myself!

Comments are closed.