gaierror: [Errno 8] nodename nor servname provided, or not known
I have a problem running scoop with OSX El Capitan.
Here the self-explanatory output I get:
import sys
print sys.version
2.7.12 (default, Oct 14 2016, 15:23:34) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]
from scoop import futures
gaierror Traceback (most recent call last)
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/futures.py in
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/_types.py in
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/_comm/init.py in
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/_comm/scoopzmq.py in
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/shared.py in
/Users/username/Homebrew/lib/python2.7/site-packages/scoop/utils.py in
gaierror: [Errno 8] nodename nor servname provided, or not known
Any clue?
+1
+1
+1 Same issue with Sierra as well.
+1 any update?
Same issue with Sierra. I just put 127.0.0.1 MacBook-Pro.local on `/etc/hosts, it may help.
Any update on this? High Sierra here, and line above didnt work
I had the same issue. The root of the problem is that there is no mapping between the name of he local host and an IP address. To solve the issue the name of your host (network name of the machine) needs to be added in /etc/hosts pointing to a local ip 127.0.01 <host name>.
Bonus fact, having emojis in the name of the host will not be recognised even if added in the host file.
@mgka got me there with their suggestion. However it required me to find my <hostname> as it was different from the example, as I expect @ben-ix experienced. In my OS I was able to get this via terminal using: hostname. In my case I had to add, as admin to /etc/host, 127.0.0.1 MyName-MacBook-Pro.local and now scoop is back to working.
Even in 2018 +1
@mgka got me there with their suggestion. However it required me to find my
<hostname>as it was different from the example, as I expect @ben-ix experienced. In my OS I was able to get this via terminal using:hostname. In my case I had to add, as admin to /etc/host,127.0.0.1 MyName-MacBook-Pro.localand now scoop is back to working.
yes,it is working well , thanks
@DMTSource thanks. executing hostname in terminal gave me MyNames-MacBook-Pro.local, like the MyName is contraction to Myname's Macbook Pro.
So in 2019 I still had this problem:
Steps to solve this are as follows:
First, write hostname in the terminal to get your local device hostname and copy it.
Then type sudo nano /etc/hosts and then input password to open nano editor then type this 127.0.0.1 hostnamethis hostname is the one which we got earlier by typing hostname in the terminal, then control+x and Y to save.
Problem solved!
Unfortunately, this remains a problem in 2024 .. any solutions yet? 😕
@CHE1RON have you tried to open /private/etc/hosts and try adding new host:
127.0.0.1 [YourName]s-MacBook-Pro.local ?
My Account name is Keitel, and mine was 127.0.0.1 Keitels-MacBook-Pro.local.
Yeah, I added all kinds of hostnames, both with trailing .local and without 😕
@CHE1RON last thing I can tell you is to double check your hostname, cause it is different according to macOS version. In terminal type: hostname and see what is printed. In my old macOS, it was Keitels-MacBook-Pro.local , but now it returns Keitels-MBP.
If nothing works, then you should check if this file is ever used, as if its permission access allow it, or not overridden by another file, I don't know.