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

**URL:** <https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236>\
**Category:** General Usage\
**Created:** [April 29, 2021, 12:28pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236 "2021-04-29T12:28:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![meck](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@meck](https://discourse.julialang.org/u/meck)\
**Post date:** [April 29, 2021, 12:28pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/1 "2021-04-29T12:28:49Z")

</div>

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.

```julia
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

```

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [April 29, 2021, 12:43pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/2 "2021-04-29T12:43:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![meck](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@meck](https://discourse.julialang.org/u/meck)\
**Post date:** [April 29, 2021, 12:55pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/3 "2021-04-29T12:55:37Z")

</div>

Thanks, it worked!

```julia
➜ 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?

---

<div class="post-metadata">

**Author:** ![meck](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@meck](https://discourse.julialang.org/u/meck)\
**Post date:** [April 29, 2021, 12:57pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/4 "2021-04-29T12:57:53Z")

</div>

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

```julia
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

```

---

<div class="post-metadata">

**Author:** ![meck](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@meck](https://discourse.julialang.org/u/meck)\
**Post date:** [April 29, 2021, 1:03pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/5 "2021-04-29T13:03:11Z")

</div>

```julia
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?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [April 29, 2021, 1:16pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/6 "2021-04-29T13:16:09Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![meck](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@meck](https://discourse.julialang.org/u/meck)\
**Post date:** [April 29, 2021, 1:18pm UTC](https://discourse.julialang.org/t/dependencies-failed-but-may-be-precompilable-after-restarting-julia-what-are-those-question-marks/60236/7 "2021-04-29T13:18:52Z")

</div>

Oh, thank you again 🤦‍♂️
