Dependencies failed but may be precompilable after restarting julia | What are those question marks?

I am trying to install a required package but it doenst work and I am getting a bunch of question marks. How do I solve this? Thank you.

ERROR: LoadError: UndefVarError: AbstractPlotting not defined
Stacktrace:
 [1] top-level scope
   @ ~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/examples/ThreeD_Plots.jl:3
in expression starting at /home/meck/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/examples/ThreeD_Plots.jl:3

(WaterLily) pkg> add AbstractPlotting
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
  No Changes to `~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/Project.toml`
  No Changes to `~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/Manifest.toml`
Precompiling project...
  Progress [========================================>]  25/25
  ? ForwardDiff
  ? Packing
  ? MeshIO
  ? Graphics
  ? ForwardDiff
  ? Packing
  ? MeshIO
  ? Graphics
  ? PlotUtils
  ? Widgets
  ? ColorSchemes
  ? ColorBrewer
  ? ColorVectorSpace
  ? PlotThemes
  ? RecipesPipeline
  ? ImageCore
  ? WebIO
  ? FreeTypeAbstraction
  ? Plots
  ? ImageMagick
  ? AbstractPlotting
  ? SmoothLivePlot
  ? GLMakie
  ? WaterLily
  5 dependencies successfully precompiled in 13 seconds (90 already precompiled)
  20 dependencies failed but may be precompilable after restarting julia
1 Like

Most times if you restart Julia and use (using ...) the package, the precompilation will finish its job and the package will work. Sometimes what happens is that some packages cannot be compiled in the current section because other packages are already using them as dependencies (something like that), but starting a fresh Julia section does the trick.

1 Like

Thanks, it worked!

➜  WaterLily.jl-1 git:(master) ✗ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.1 (2021-04-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.6) pkg> activate .
  Activating environment at `~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/Project.toml`

(WaterLily) pkg> add AbstractPlotting
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
  No Changes to `~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/Project.toml`
  No Changes to `~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/Manifest.toml`
Precompiling project...
  20 dependencies successfully precompiled in 70 seconds (95 already precompiled)

So does that mean those packages with a ? before them in my initial post were being used as dependencies by other packages at that time?

But when I am trying to run a module with AbstractPlotting in it, I get this Error:

ERROR: LoadError: UndefVarError: AbstractPlotting not defined
Stacktrace:
 [1] top-level scope
   @ ~/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/examples/ThreeD_Plots.jl:3
in expression starting at /home/meck/Documents/Bachelor Arbeit/Repos/WaterLily.jl-1/examples/ThreeD_Plots.jl:3
using AbstractPlotting.Colors
AbstractPlotting.inline!(true)

So the error comes from the second line. When I am commenting it, the code runs. What is it about the .inline!(true) part that seems to go sideways?

Seems that you imported only the Colors package from within AbstractPlotting. Use only:

using AbstractPlotting

(I do not have that package installed, but that might be it)

Oh, thank you again :man_facepalming:

1 Like