Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from example #87

Open
benjaminmlucas opened this issue Sep 23, 2021 · 0 comments
Open

error from example #87

benjaminmlucas opened this issue Sep 23, 2021 · 0 comments

Comments

@benjaminmlucas
Copy link

when I try to run your example S1denoise script I get this error and can't seem to debug it:

No module named 'nansat._pixfun_py3'
/home/benjamin/.local/lib/python3.8/site-packages/nansat/init.py:30: UserWarning: Cannot register C pixel functions!
Either nansat was not installed using setup.py or
pixel functions were not compiled automatically.
For development, use "python setup.py build_ext --inplace"
to compile pixel functions manually into the source tree.

warnings.warn('''Cannot register C pixel functions!
02:58:06|40|nansat|_get_dataset_metadata|GDAL could not open ../original_images/S1A_EW_GRDM_1SDH_20180717T073809_20180717T073909_022831_0279B9_EBF1.zip, trying to read with Nansat mappers...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f1f6b130df0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='qc.sentinel1.eo.esa.int', port=443): Max retries exceeded with url: /product/S1A/AUX_CAL/20171017T080000/S1A_AUX_CAL_V20171017T080000_G20180622T082918.SAFE.TGZ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1f6b130df0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "initial_script.py", line 6, in
s1 = Sentinel1Image(zip_file)
File "/home/benjamin/.local/lib/python3.8/site-packages/s1denoise/sentinel1image.py", line 113, in init
self.download_aux_calibration(auxCalibFilename, self.platform.lower())
File "/home/benjamin/.local/lib/python3.8/site-packages/s1denoise/sentinel1image.py", line 131, in download_aux_calibration
r = requests.get(cal_url, stream=True)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='qc.sentinel1.eo.esa.int', port=443): Max retries exceeded with url: /product/S1A/AUX_CAL/20171017T080000/S1A_AUX_CAL_V20171017T080000_G20180622T082918.SAFE.TGZ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1f6b130df0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant