Skip to content

no method matching project_rel_path(::Pkg.Types.EnvCache, ::Nothing) on 1.10.5 #564

Closed
@Moelf

Description

@Moelf
CondaPkg Found dependencies: /home/jiling/.julia/environments/BjetTLA/CondaPkg.toml
    CondaPkg Found dependencies: /home/jiling/.julia/packages/PythonCall/Nr75f/CondaPkg.toml
ERROR: LoadError: InitError: MethodError: no method matching project_rel_path(::Pkg.Types.EnvCache, ::Nothing)

Closest candidates are:
  project_rel_path(::Pkg.Types.EnvCache, ::String)
   @ Pkg ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:921

Stacktrace:
  [1] package_info(env::Pkg.Types.EnvCache, pkg::Pkg.Types.PackageSpec, entry::Pkg.Types.PackageEntry)
    @ Pkg.API ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu[/share/julia/stdlib/v1.10/Pkg/src/API.jl:68](https://jiling-notebook-1.notebook.af.uchicago.edu/share/julia/stdlib/v1.10/Pkg/src/API.jl#line=67)
  [2] package_info
    @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:61 [inlined]
  [3] #9
    @ ./none:0 [inlined]
  [4] iterate
    @ ./generator.jl:47 [inlined]
  [5] _all(f::Base.var"#384#386", itr::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}}, ::Colon)
    @ Base ./reduce.jl:1297
  [6] all
    @ ./reduce.jl:1283 [inlined]
  [7] Dict(kv::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}})
    @ Base ./dict.jl:111
  [8] dependencies
    @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu[/share/julia/stdlib/v1.10/Pkg/src/API.jl:88](https://jiling-notebook-1.notebook.af.uchicago.edu/share/julia/stdlib/v1.10/Pkg/src/API.jl#line=87) [inlined]
  [9] dependencies()
    @ Pkg.API ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu[/share/julia/stdlib/v1.10/Pkg/src/API.jl:85](https://jiling-notebook-1.notebook.af.uchicago.edu/share/julia/stdlib/v1.10/Pkg/src/API.jl#line=84)
 [10] _resolve_find_dependencies(io::Any, load_path::Any)
    @ CondaPkg ~/.julia/packages/CondaPkg/iPD6F/src/resolve.jl:138
 [11] resolve(; force::Bool, io::IO, interactive::Bool, dry_run::Bool)
    @ CondaPkg ~/.julia/packages/CondaPkg/iPD6F/src/resolve.jl:541
 [12] resolve()
    @ CondaPkg ~/.julia/packages/CondaPkg/iPD6F/src/resolve.jl:471
 [13] envdir()
    @ CondaPkg ~/.julia/packages/CondaPkg/iPD6F/src/env.jl:70
 [14] init_context()
    @ PythonCall.C ~/.julia/packages/PythonCall/Nr75f/src/C/context.jl:63
 [15] __init__()
    @ PythonCall.C ~/.julia/packages/PythonCall/Nr75f/src/C/C.jl:23
 [16] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1134
 [17] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions