Skip to content

IOError: [Errno socket error] [Errno -2] Name or service not known #5

@ZeroDot1

Description

@ZeroDot1
$ cliweather -f
Traceback (most recent call last):
  File "/usr/bin/cliweather", line 137, in <module>
    main()
  File "/usr/bin/cliweather", line 33, in main
    getForecast(place)
  File "/usr/bin/cliweather", line 72, in getForecast
    woeid = getWOEID(place)
  File "/usr/bin/cliweather", line 120, in getWOEID
    dom = parseString(urlopen(api).read())
  File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.7/urllib.py", line 215, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 352, in open_http
    h.endheaders(data)
  File "/usr/lib/python2.7/httplib.py", line 1095, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 898, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 860, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 837, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 557, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno -2] Name or service not known

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions