micro_geo2kml.py errors when run
again when running the updated version of the script it throws this error Traceback (most recent call last): File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\connection.py", line 60, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen chunked=chunked) File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 844, in _validate_conn conn.connect() File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 284, in connect conn = self._new_conn() File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x036D7E70>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 449, in send timeout=timeout File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 649, in urlopen _stacktrace=sys.exc_info()[2]) File "C:\Users\Peter Samoaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='en.wikipedia.org%20', port=443): Max retries exceeded with url: /wiki/List_of_United_States_cities_by_population (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x036D7E70>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "micro_geo2kml.py", line 36, in