After using the REPL to add the Plots package in julia 1.6.1 under macOS Big sur 11.4, I opened the jupyter notebook ott_chaos.ipynb from the JuliaDynamics tutorials and evaluated the first cell:
using Plots, DynamicalSystemsBase, ChaosTools
This created error shown below.
What’s wrong and how can it be fixed?
Oddly, the error does not occur if in the REPL I evaluate command “using Plots”.
┌ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
└ @ Base loading.jl:1317
ERROR: LoadError: ArgumentError: Package Plots does not have GeometryBasics in its dependencies:
- If you have Plots checked out for development and have
added GeometryBasics 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 Plots
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base ./loading.jl:884
[2] include
@ ./Base.jl:386 [inlined]
[3] 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, UInt64}}, source::Nothing)
@ Base ./loading.jl:1213
[4] top-level scope
@ none:1
[5] eval
@ ./boot.jl:360 [inlined]
[6] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[7] top-level scope
@ none:1
in expression starting at /Users/murray/.julia/packages/Plots/YVapH/src/Plots.jl:1
Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/murray/.julia/compiled/v1.6/Plots/jl_m8juIL.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IJulia.IJuliaStdio{Base.PipeEndpoint}, internal_stdout::IJulia.IJuliaStdio{Base.PipeEndpoint})
@ Base ./loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[7] eval
@ ./boot.jl:360 [inlined]
[8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1094