Compiling error


#1

Hey everyone,

I am not sure if this is the right way to ask something, but here I am: I am getting an error when I trying to compile some packages, for instance “using DataFrames” is returning the message:

using DataFrames
[ Info: Precompiling DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0]
ERROR: LoadError: syntax: incomplete: premature end of input
Stacktrace:
[1] include at ./boot.jl:326 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:1038
[3] include(::Module, ::String) at ./sysimg.jl:29
[4] top-level scope at none:2
[5] eval at ./boot.jl:328 [inlined]
[6] eval(::Expr) at ./client.jl:404
[7] top-level scope at ./none:3
in expression starting at /home/thomas/.julia/packages/Compat/HiX6E/src/Compat.jl:3
ERROR: LoadError: Failed to precompile Compat [34da2185-b29b-5c13-b0c7-acf172513d20] to /home/thomas/.julia/compiled/v1.1/Compat/GSFWK.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
[3] _require(::Base.PkgId) at ./loading.jl:960
[4] require(::Base.PkgId) at ./loading.jl:858
[5] require(::Module, ::Symbol) at ./loading.jl:853
[6] include at ./boot.jl:326 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1038
[8] include(::Module, ::String) at ./sysimg.jl:29
[9] top-level scope at none:2
[10] eval at ./boot.jl:328 [inlined]
[11] eval(::Expr) at ./client.jl:404
[12] top-level scope at ./none:3
in expression starting at /home/thomas/.julia/packages/DataFrames/IKMvt/src/DataFrames.jl:9
ERROR: Failed to precompile DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0] to /home/thomas/.julia/compiled/v1.1/DataFrames/AR9oZ.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
[3] _require(::Base.PkgId) at ./loading.jl:960
[4] require(::Base.PkgId) at ./loading.jl:858
[5] require(::Module, ::Symbol) at ./loading.jl:853

Does anyone have any idea what is happening? It wasn’t happening some days ago.

Thank you,
Thomas


#2

Looks like loading Compat is failing. Perhaps it got corrupted somehow. Try delete the folder /home/thomas/.julia/packages/Compat/HiX6E and reinstall it.


#3

Thank you!

It worked! I deleted the entire .julia folder and reinstalled the packages (I don’t use a lot of them).