What to do when Pluto fails to compile packages?

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

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.

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?

1 Like

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

using Pkg
Pkg.precompile()

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

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

using Pkg
pkg"status -m"
3 Likes