Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Pkg.build("PyCall"), json.decoder.JSONDecodeError: Extra data

未关闭
#1,057 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

从 Pkg.build("PyCall") 开始,检查报告中提到的 Conda 和 PyCall 构建日志。通过 conda/core/subdir_data.py 和 conda/gateways/repodata/init.py 跟踪 conda repodata 状态的加载,重点关注会引发 JSONDecodeError 的 JSON 状态解析。报告中的 PyCall 构建路径不再因该错误失败,并且原因和复现步骤已记录,即视为完成。

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

描述

Hi everyone,

I am running Julia "v"1.9.3" (https://julialang-s3.julialang.org/bin/mac/aarch64/1.9/julia-1.9.3-macaarch64.dmg) on Apple M2 Max with Ventura 13.6.

The Python version on my laptop is Python 3.10.13 build with Anaconda.

I've got the following error when I tried to build "Pycall". Any idea about this?

Pkg.build("PyCall")
Building Conda ─→ ~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/8c86e48c0db1564a1d49548d3515ced5d604c408/build.log
Building PyCall → ~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/43d304ac6f0354755f1d60730ece8c499980f7ba/build.log
ERROR: Error building PyCall, showing the last 100 of log:
self.load()
File "/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/core/subdir_data.py", line 264, in load
_internal_state = self._load()
File "
.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/core/subdir_data.py", line 321, in _load
repodata, state = fetcher.fetch_latest_parsed()
File ".julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/init.py", line 757, in fetch_latest_parsed
parsed, state = self.fetch_latest()
File "
/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/init.py", line 819, in fetch_latest
cache.load_state()
File "/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/init.py", line 625, in load_state
self.load(state_only=True)
File "
/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/init.py", line 575, in load
state = json.loads(state_file.read())
File "/.julia/conda/3/aarch64/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "
/.julia/conda/3/aarch64/lib/python3.10/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 9 column 2 (char 292)

主要语言
Julia
星标
1.5k
派生
186
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaPy/PyCall.jl 的其他 Issue

查看 JuliaPy/PyCall.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

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