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

ERROR: InitError: expected package `Measurements [eff96d63]` to exist in the manifest

未关闭
#660 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia
领域
build-system

调研方向

在 BjetTLA 项目中使用 Julia 1.11.6,通过移除并重新添加 Measurements,然后运行 using PythonCall 来复现该失败。比较 Project.toml 和 Manifest.toml 的状态,并重试预编译;当 PythonCall 在没有 Measurements InitError 的情况下加载,且项目成功完成预编译时,即表示完成。

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

描述

bug
(@BjetTLA) pkg> rm Measurements
    Updating `~/.julia/environments/BjetTLA/Project.toml`
  [eff96d63] - Measurements v2.14.0
  No Changes to `~/.julia/environments/BjetTLA/Manifest.toml`

julia> using PythonCall

julia> #works fine
(@BjetTLA) pkg> add Measurements
   Resolving package versions...
      Compat entries added for Measurements
    Updating `~/.julia/environments/BjetTLA/Project.toml`
  [eff96d63] + Measurements v2.14.0
  No Changes to `~/.julia/environments/BjetTLA/Manifest.toml`
Precompiling project...
  ✗ SciMLBase → SciMLBasePythonCallExt
  ✗ BjetTLA
  0 dependencies successfully precompiled in 34 seconds. 655 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

[jiling@jiling-notebook-1 BjetTLA]$ julia --project
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.6 (2025-07-09)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using PythonCall
    CondaPkg Found dependencies: /home/jiling/.julia/environments/BjetTLA/CondaPkg.toml
ERROR: InitError: expected package `Measurements [eff96d63]` to exist in the manifest (use `resolve` to populate the manifest)
Stacktrace:
  [1] pkgerror(::String, ::Vararg{String})
    @ Pkg.Types ~/.julia/juliaup/julia-1.11.6+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68
  [2] package_info
    @ ~/.julia/juliaup/julia-1.11.6+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/API.jl:56 [inlined]
  [3] #9
    @ ./none:0 [inlined]
  [4] iterate
    @ ./generator.jl:48 [inlined]
  [5] Dict{Base.UUID, Pkg.API.PackageInfo}(kv::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}})
    @ Base ./dict.jl:95
  [6] dict_with_eltype
    @ ./abstractdict.jl:636 [inlined]
  [7] dict_with_eltype
    @ ./abstractdict.jl:643 [inlined]
主要语言
Julia
星标
1.1k
派生
89
平均合并
2 天 15 小时
30 天内合并 PR
7

环境准备

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

从这里开始

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

JuliaPy/PythonCall.jl 的其他 Issue

查看 JuliaPy/PythonCall.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

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