-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to precompile CSV #895
Comments
A Discourse user @thatcher was able to get everything working by using the following package versions:
|
Just to confirm from my side: Funny thing is CSV (0.8.3), DataFramesMeta (0.60) and DataFrames (0.18.3) load & precompile nicely when run from the REPL Since it doesn't happen to any other packages, well at the moment at least, I wonder if the bug is in Pluto or in these packages (and other packages might follow suit). |
See the discussion under JuliaData/CategoricalArrays.jl#325 : It seems that it is somehow linked to the way Pkg and Pluto interact. Somehow under Pluto, an older version 1.4.x of DataAPI.jl was drawn in, though both DataFrames.jl (via PooledArrays.jl) and CategoricalArrays.jl have requirements for 1.5 in their Project.toml . I was able to fix my situation by removing .julia/packages and .julia/environments, and re-adding/re-instantiating. |
It might be a problem on package server side - hopefully now it is resolved (see https://discourse.julialang.org/t/pkg-protocol-delay-in-updating-generalregistry/54521 for a discussion of similar problems). |
A possible cause is that Pluto loads Tables.jl on the notebook process before running your code, so the loaded version of Tables could be different from the one resolved by Pkg. Can you use this inside the notebook to check which version of Tables was loaded? It should be >=1.1 |
I am having the same issue on Manjaro Linux. The same error with PooledArrays.jl inside a Pluto session. |
It was a problem on the Pluto side (#895 (comment) ), and I fixed it on master 🌈 We will backport to a patch release for 0.12 soon |
Okey. After deleting, removing, removing, installing, removing deleting, installing it worked. sorry for the hasty comment but again it looks like something is not working 100% .. Also I observed that the compilation time is much more that REPL's. idk if this is normal. |
I have the same error as OP again, on Windows. The problem is NOT solved by deleting the
Further stacktrace info and versions of stuff here: error_details.txt. |
@adomasbaliuka Can you share a notebook file that does not work? |
Thanks for the quick response and sorry, it seems I didn't test this carefully enough. The problem is with my notebook reproduce_CSV_compile_bug.jl.txt, though I don't know what the problem is exactly. Maybe some package versions contained in the internal manifest are inconsistent. If I make a new notebook, even with the same list of packages to use, it actually works fine. Is there a way to "order a given Pluto notebook to regenerate its internal manifest" or something? |
Hey @adomasbaliuka ! In that case, it looks like your notebook was still using a broken version of CSV.jl. You can update package by clicking on the checkmark next to a package name, and then the update button. More info here: https://github.com/fonsp/Pluto.jl/wiki/%F0%9F%8E%81-Package-management |
using CSV
in a Pluto notebook causes:REPL output:
Out put of
versioninfo()
:CSV version is
[336ed68f] CSV v0.8.3
and Pluto is[c3e4b0f8] Pluto v0.12.20
.Other users are experiencing this error as well: https://discourse.julialang.org/t/failed-to-precompile-csv-in-pluto/54633/4
The text was updated successfully, but these errors were encountered: