From anonymous, 1 Month ago, written in Python.
Embed
  1. $ python3 wuff.py stats
  2. Traceback (most recent call last):
  3.   File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
  4.     conn = connection.create_connection(
  5.   File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
  6.     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  7.   File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
  8.     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  9. socket.gaierror: [Errno -3] Temporary failure in name resolution
  10.  
  11. During handling of the above exception, another exception occurred:
  12.  
  13. Traceback (most recent call last):
  14.   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
  15.     httplib_response = self._make_request(
  16.   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
  17.     self._validate_conn(conn)
  18.   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
  19.     conn.connect()
  20.   File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
  21.     self.sock = conn = self._new_conn()
  22.   File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
  23.     raise NewConnectionError(
  24. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f6a108357b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
  25.  
  26. During handling of the above exception, another exception occurred:
  27.  
  28. Traceback (most recent call last):
  29.   File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
  30.     resp = conn.urlopen(
  31.   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
  32.     retries = retries.increment(
  33.   File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
  34.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  35. urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='data.stadt-zuerich.ch', port=443): Max retries exceeded with url: /dataset/sid_stapo_hundenamen_od1002/download/KUL100OD1002.csv (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6a108357b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
  36.  
  37. During handling of the above exception, another exception occurred:
  38.  
  39. Traceback (most recent call last):
  40.   File "/home/florian/hsr/autpy/grading-area/AutPy_Project/wuff.py", line 20, in <module>
  41.     data = requests.get('https://data.stadt-zuerich.ch/dataset/sid_stapo_hundenamen_od1002/download/KUL100OD1002.csv')
  42.   File "/usr/lib/python3.10/site-packages/requests/api.py", line 73, in get
  43.     return request("get", url, params=params, **kwargs)
  44.   File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
  45.     return session.request(method=method, url=url, **kwargs)
  46.   File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
  47.     resp = self.send(prep, **send_kwargs)
  48.   File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
  49.     r = adapter.send(request, **kwargs)
  50.   File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
  51.     raise ConnectionError(e, request=request)
  52. requests.exceptions.ConnectionError: HTTPSConnectionPool(host='data.stadt-zuerich.ch', port=443): Max retries exceeded with url: /dataset/sid_stapo_hundenamen_od1002/download/KUL100OD1002.csv (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6a108357b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
  53.