JuliaPy / JuliaPy/PythonCall.jl

SSL CERTIFICATE_VERIFY_FAILED

未关闭
#651 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

**Affects:** PythonCall

**Describe the bug**

After upgrading Julia to `1.12-rc`, it seems I could not connect to the remote server because of SSL fail (for package https://github.com/SciQLop/Speasy.jl).
However, this bug only appears locally, not in CI, which is very weird. I checked the cert paths from Python, and the result is different from the previous discussion #493 , so maybe they are related.

```
julia> using PythonCall

julia> @py import ssl

julia> ssl.get_default_verify_paths()
Python: DefaultVerifyPaths(cafile=None, capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/workspace/destdir/ssl/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/workspace/destdir/ssl/certs')
```

**Your system**

```
julia> versioninfo()
Julia Version 1.12.0-rc1
Commit 228edd6610b (2025-07-12 20:11 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU: 8 × Apple M1 Pro
LLVM: libLLVM-18.1.7 (ORCJIT, apple-m1)
GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 6 virtual cores)
```

```
julia> Pkg.status()
Project Speasy v0.4.2
Status `~/src/Speasy.jl/Project.toml`
[2569d6c7] ConcreteStructs v0.2.3
[992eb4ea] CondaPkg v0.2.29
[46f1a544] NanoDates v1.0.3
[6099a3de] PythonCall v0.9.26
[0b37b92c] SpaceDataModel v0.1.12
[10745b16] Statistics v1.11.1
[1986cc42] Unitful v1.24.0
[ade2ca70] Dates v1.11.0
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the failure through PythonCall on Julia 1.12-rc1 and macOS, using the reported ssl.get_default_verify_paths() output as the initial entry point. Compare the certificate-path behavior with discussion #493 and the working CI environment; done means identifying and fixing the local SSL verification failure with a regression check.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。