brightway-lca / brightway2-regional

Regionalized LCA calculations
https://docs.brightway.dev/projects/bw-regional/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

aware.create_regionalized_intersections() error 11001 failed to establish a new collection #9

Open elisapas opened 1 year ago

elisapas commented 1 year ago

Please, can someone help me with the following issue when running "create_regionalized_intersections"?:

Intersection for world and watersheds-aware already calculated Calculation job submitted.

gaierror Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in _new_conn(self) 173 try: --> 174 conn = connection.create_connection( 175 (self._dns_host, self.port), self.timeout, **extra_kw

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options) 72 ---> 73 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 74 af, socktype, proto, canonname, sa = res

~\Miniconda3\envs\bw25reg\lib\socket.py in getaddrinfo(host, port, family, type, proto, flags) 953 addrlist = [] --> 954 for res in _socket.getaddrinfo(host, port, family, type, proto, flags): 955 af, socktype, proto, canonname, sa = res

gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

NewConnectionError Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 698 # Make the request on the httplib connection object. --> 699 httplib_response = self._make_request( 700 conn,

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 381 try: --> 382 self._validate_conn(conn) 383 except (SocketTimeout, BaseSSLError) as e:

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in _validate_conn(self, conn) 1009 if not getattr(conn, "sock", None): # AppEngine might not have .sock -> 1010 conn.connect() 1011

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in connect(self) 357 # Add certificate verification --> 358 conn = self._new_conn() 359 hostname = self.host

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in _new_conn(self) 185 except SocketError as e: --> 186 raise NewConnectionError( 187 self, "Failed to establish a new connection: %s" % e

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000242B870B9A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

MaxRetryError Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method,

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 754 --> 755 retries = retries.increment( 756 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 573 if new_retry.is_exhausted(): --> 574 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 575

MaxRetryError: HTTPSConnectionPool(host='pandarus.brightway.dev%3c!doctype%20html%20public%20%22-', port=443): Max retries exceeded with url: //W3C//DTD%20HTML%203.2%20Final//EN%22%3E%0A%3Ctitle%3E409%20Conflict%3C/title%3E%0A%3Ch1%3EConflict%3C/h1%3E%0A%3Cp%3EThis%20intersection%20already%20exists%3C/p%3E%0A (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000242B870B9A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

ConnectionError Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\bw2regional\pandarus_remote.py in poll(self, interval) 49 while True: ---> 50 if self.status not in {"failed", "finished", "forgotten"}: 51 time.sleep(interval)

~\Miniconda3\envs\bw25reg\lib\site-packages\bw2regional\pandarus_remote.py in status(self) 40 def status(self): ---> 41 response = requests.get(self.url) 42 if response.status_code != 404:

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\api.py in get(url, params, kwargs) 74 ---> 75 return request('get', url, params=params, kwargs) 76

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\api.py in request(method, url, kwargs) 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, kwargs) 62

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 541 send_kwargs.update(settings) --> 542 resp = self.send(prep, **send_kwargs) 543

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\sessions.py in send(self, request, kwargs) 654 # Send the request --> 655 r = adapter.send(request, kwargs) 656

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 515 --> 516 raise ConnectionError(e, request=request) 517

ConnectionError: HTTPSConnectionPool(host='pandarus.brightway.dev%3c!doctype%20html%20public%20%22-', port=443): Max retries exceeded with url: //W3C//DTD%20HTML%203.2%20Final//EN%22%3E%0A%3Ctitle%3E409%20Conflict%3C/title%3E%0A%3Ch1%3EConflict%3C/h1%3E%0A%3Cp%3EThis%20intersection%20already%20exists%3C/p%3E%0A (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000242B870B9A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

gaierror Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in _new_conn(self) 173 try: --> 174 conn = connection.create_connection( 175 (self._dns_host, self.port), self.timeout, **extra_kw

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options) 72 ---> 73 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 74 af, socktype, proto, canonname, sa = res

~\Miniconda3\envs\bw25reg\lib\socket.py in getaddrinfo(host, port, family, type, proto, flags) 953 addrlist = [] --> 954 for res in _socket.getaddrinfo(host, port, family, type, proto, flags): 955 af, socktype, proto, canonname, sa = res

gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

NewConnectionError Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 698 # Make the request on the httplib connection object. --> 699 httplib_response = self._make_request( 700 conn,

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 381 try: --> 382 self._validate_conn(conn) 383 except (SocketTimeout, BaseSSLError) as e:

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in _validate_conn(self, conn) 1009 if not getattr(conn, "sock", None): # AppEngine might not have .sock -> 1010 conn.connect() 1011

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in connect(self) 357 # Add certificate verification --> 358 conn = self._new_conn() 359 hostname = self.host

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connection.py in _new_conn(self) 185 except SocketError as e: --> 186 raise NewConnectionError( 187 self, "Failed to establish a new connection: %s" % e

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000242B4C7AE80>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

MaxRetryError Traceback (most recent call last) ~\Miniconda3\envs\bw25reg\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method,

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 754 --> 755 retries = retries.increment( 756 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]

~\Miniconda3\envs\bw25reg\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 573 if new_retry.is_exhausted(): --> 574 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 575

MaxRetryError: HTTPSConnectionPool(host='pandarus.brightway.dev%3c!doctype%20html%20public%20%22-', port=443): Max retries exceeded with url: //W3C//DTD%20HTML%203.2%20Final//EN%22%3E%0A%3Ctitle%3E409%20Conflict%3C/title%3E%0A%3Ch1%3EConflict%3C/h1%3E%0A%3Cp%3EThis%20intersection%20already%20exists%3C/p%3E%0A (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000242B4C7AE80>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_780/103464265.py in ----> 1 aware.create_regionalized_intersections()

~\Miniconda3\envs\bw25reg\lib\site-packages\bw2_aware__init__.py in create_regionalized_intersections() 28 try: 29 job = remote.calculate_intersection("world", "watersheds-aware") ---> 30 job.poll(interval=2) 31 if job.status != "finished": 32 raise ValueError(

~\Miniconda3\envs\bw25reg\lib\site-packages\bw2regional\pandarus_remote.py in poll(self, interval) 55 pass 56 finally: ---> 57 print("\nJob ended with status '{}'".format(self.status)) 58 59

~\Miniconda3\envs\bw25reg\lib\site-packages\bw2regional\pandarus_remote.py in status(self) 39 @property 40 def status(self): ---> 41 response = requests.get(self.url) 42 if response.status_code != 404: 43 return response.text

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\api.py in get(url, params, kwargs) 73 """ 74 ---> 75 return request('get', url, params=params, kwargs) 76 77

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\api.py in request(method, url, kwargs) 59 # cases, and look like a memory leak in others. 60 with sessions.Session() as session: ---> 61 return session.request(method=method, url=url, kwargs) 62 63

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 540 } 541 send_kwargs.update(settings) --> 542 resp = self.send(prep, **send_kwargs) 543 544 return resp

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\sessions.py in send(self, request, kwargs) 653 654 # Send the request --> 655 r = adapter.send(request, kwargs) 656 657 # Total elapsed time of the request (approximately)

~\Miniconda3\envs\bw25reg\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host='pandarus.brightway.dev%3c!doctype%20html%20public%20%22-', port=443): Max retries exceeded with url: //W3C//DTD%20HTML%203.2%20Final//EN%22%3E%0A%3Ctitle%3E409%20Conflict%3C/title%3E%0A%3Ch1%3EConflict%3C/h1%3E%0A%3Cp%3EThis%20intersection%20already%20exists%3C/p%3E%0A (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000242B4C7AE80>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))