Xarray tutorial with custom SSL cert?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Documentazione
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Start with the xarray.tutorial.open_dataset("air_temperature") entry point and the linked urllib3 custom SSL context documentation. Determine whether the tutorial exposes a supported way to use the reported .pem certificate, and document the applicable workaround or limitation so the example works or its requirements are clear.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm on a secure NATO system with a custom SSL cert and when I try to load some xarray tutorial data:
import xarray as xr
ds = xr.tutorial.open_dataset("air_temperature").isel(time=slice(0, 100))
I get back:
---------------------------------------------------------------------------
SSLCertVerificationError Traceback (most recent call last)
File ~/miniforge3/envs/pangeo/lib/python3.10/site-packages/urllib3/connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
704 conn,
With other packages I can set an environment variable to point to the custom .pem, like:
os.environ['AWS_CA_BUNDLE']='/home/shared/PA-RootCA-Cert-2023-Pub.pem' # s3
os.environ['REQUESTS_CA_BUNDLE']='/home/shared/PA-RootCA-Cert-2023-Pub.pem' # requests
but there doesn't seem to be such an environment variable for urllib3?
I see this info in the urlib3 docs about custom SSL, but I'm not sure how I could pass this custom context to the xr.tutorial.open_dataset command.
Does anyone know how to overcome this issue?
- Lingua principale
- Jupyter Notebook
- Stelle
- 204
- Fork
- 121
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di xarray-contrib/xarray-tutorial
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
xarray-contrib/xarray-tutorial#362 · 2 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
Tutte le issue di xarray-contrib/xarray-tutorial
Issue simili
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
-
Перевод устарел
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
-
affects/8.7 affects/8.8 affects/8.9
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
camunda/camunda-docs#9997 ·
-
Website Doc Typo Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100