I’m completely new to Julia, and have inherited a julia code project from another researcher. (Yay, Julia!)
I’m trying to resolve the environment, but I’m getting an error. Specifically the error says the following:
- You may have a partially installed environment. Try `Pkg.instantiate()`
to ensure all packages in the environment are installed.
- Or, if you have Base checked out for development and have
added Sobol as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Base
Since I’m so new, I don’t want to report an issue with Base. However, I’ve followed all of the other suggested steps.
Could you help me figure out what I’m missing? Thanks in advance!
Here are my full steps:
julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.4 (2024-06-04)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.10) pkg>
(@v1.10) pkg> activate .
Activating project at `~/ACAI_testing/ACAI`
(ACAI) pkg> add Sobol
Resolving package versions...
No Changes to `~/ACAI_testing/ACAI/Project.toml`
No Changes to `~/ACAI_testing/ACAI/Manifest.toml`
(ACAI) pkg> up
Updating registry at `~/.julia/registries/General.toml`
No Changes to `~/ACAI_testing/ACAI/Project.toml`
No Changes to `~/ACAI_testing/ACAI/Manifest.toml`
(ACAI) pkg> resolve
No Changes to `~/ACAI_testing/ACAI/Project.toml`
No Changes to `~/ACAI_testing/ACAI/Manifest.toml`
(ACAI) pkg> status
Project ACAI v1.5.1
Status `~/ACAI_testing/ACAI/Project.toml`
[336ed68f] CSV v0.10.14
[a2e0e22d] CalculusWithJulia v0.2.6
[8f4d0f93] Conda v1.10.0
[a93c6f00] DataFrames v1.6.1
[31c24e10] Distributions v0.25.109
[fde71243] EasyFit v0.6.6
[a98d9a8b] Interpolations v0.15.1
[033835bb] JLD2 v0.4.48
[23992714] MAT v0.10.7
[85f8d34a] NCDatasets v0.14.4
[438e738f] PyCall v1.96.4
[d330b81b] PyPlot v2.11.2
[1fd47b50] QuadGK v2.9.4
[ed01d8cd] Sobol v1.5.0
[fdbf4ff8] XLSX v0.10.1
[ddb6d928] YAML v0.4.11
[b77e0a4c] InteractiveUtils
[37e2e46d] LinearAlgebra
[d6f4376e] Markdown
[9abbd945] Profile
[9a3f8284] Random
[2f01184e] SparseArrays v1.10.0
[10745b16] Statistics v1.10.0
(ACAI) pkg> precompile
Precompiling project...
Info Given ACAI was explicitly requested, output will be shown live
ERROR: LoadError: ArgumentError: Package Base does not have Sobol in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
to ensure all packages in the environment are installed.
- Or, if you have Base checked out for development and have
added Sobol as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Base
Stacktrace:
[1] macro expansion
@ ./loading.jl:1776 [inlined]
[2] macro expansion
@ ./lock.jl:267 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1753
[4] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[5] invoke_in_world
@ ./essentials.jl:923 [inlined]
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1746
[7] include
@ ./Base.jl:495 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2222
[9] top-level scope
@ stdin:3
in expression starting at /home/carlau/ACAI_testing/ACAI/src/ACAI.jl:5
in expression starting at stdin:3
✗ ACAI
0 dependencies successfully precompiled in 2 seconds. 182 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
ACAI [411ef148-9eb2-4e43-9147-35688f506280]
Failed to precompile ACAI [411ef148-9eb2-4e43-9147-35688f506280] to "/home/carlau/.julia/compiled/v1.10/ACAI/jl_ulyP58".
ERROR: LoadError: ArgumentError: Package Base does not have Sobol in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
to ensure all packages in the environment are installed.
- Or, if you have Base checked out for development and have
added Sobol as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Base
Stacktrace:
[1] macro expansion
@ ./loading.jl:1776 [inlined]
[2] macro expansion
@ ./lock.jl:267 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1753
[4] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[5] invoke_in_world
@ ./essentials.jl:923 [inlined]
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1746
[7] include
@ ./Base.jl:495 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2222
[9] top-level scope
@ stdin:3
in expression starting at /home/carlau/ACAI_testing/ACAI/src/ACAI.jl:5
in expression starting at stdin:
(ACAI) pkg> instantiate
(ACAI) pkg>