Xarray tutorial with custom SSL cert?
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- Jupyter Notebook
- 星标
- 204
- 派生
- 121
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xarray-contrib/xarray-tutorial 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
help wanted
难度 4/5 3-5 天 新手友好度 48/100
xarray-contrib/xarray-tutorial#362 · 2 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 38/100
查看 xarray-contrib/xarray-tutorial 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
bancolombia/sentinel#22 ·
-
test md 未关闭CI
难度 2/5 1-3 小时 新手友好度 74/100
-
optimization optimization:agents-md-curator
难度 2/5 1-3 小时 新手友好度 86/100
githubnext/gh-aw-cao#13143 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
objectionary/hone-maven-plugin#1061 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
redhat-developer/rhdh-plugins#4887 · 2 条评论 ·