# What to do when Pluto fails to compile packages?

**URL:** <https://discourse.julialang.org/t/what-to-do-when-pluto-fails-to-compile-packages/92347>\
**Category:** Pluto\
**Tags:** package, pluto\
**Created:** [December 31, 2022, 2:51am UTC](https://discourse.julialang.org/t/what-to-do-when-pluto-fails-to-compile-packages/92347 "2022-12-31T02:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Post date:** [December 31, 2022, 2:51am UTC](https://discourse.julialang.org/t/what-to-do-when-pluto-fails-to-compile-packages/92347/1 "2022-12-31T02:51:32Z")

</div>

I am trying to run the cells in a Pluto file. Pluto automatically runs all the cells in the file, but it fails in the first cell when the packages are being loaded.

Here’s what the error message looks like

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/4/b4aa77877f6589aab971fc4589edb8e9bd041ed8.png)

All I understood is that CSV.jl failed to precompile. That aside, I can’t make sense of the rest of the error message.

Do I have to have all the packages installed locally for the file to run without error? I don’t think that is the case, otherwise, it would kind of defeat the purpose of running it online, but I do happen to have CSV installed locally.

**Does anyone know what I am doing wrong and how I can fix it?**  
Thank you.

---

<div class="post-metadata">

**Author:** ![lungben](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lungben/32/12314_2.png) [@lungben](https://discourse.julialang.org/u/lungben)\
**Post date:** [December 31, 2022, 2:37pm UTC](https://discourse.julialang.org/t/what-to-do-when-pluto-fails-to-compile-packages/92347/2 "2022-12-31T14:37:58Z")

</div>

This looks like a bug in the CSV version used by your notebook. Can you try to update CSV.jl in the Pluto notebook by pressing the update button next to the using (or import) statement?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 1, 2023, 8:41pm UTC](https://discourse.julialang.org/t/what-to-do-when-pluto-fails-to-compile-packages/92347/3 "2023-01-01T20:41:54Z")

</div>

When I have these issues, the first thing to try is

```julia
using Pkg
Pkg.precompile()

```

To isolate the problem further, you may need to create a temporary environment.

```julia
using Pkg
pkg"activate --temp"

```

Then add the packages one by one to the temporary environment to see what breaks.

Note that you can also just open up the notebook in a editor and view the embedded Project.toml and Manifest.toml information.

If you are still stuck, send us this information or the output of

```julia
using Pkg
pkg"status -m"

```
