DataFrames doesn't precompile


#1

I did a Pkg.update(), which installed a new version of DataFrames (0.11.6+), but it won’t precompile, giving the following error message:

julia> using DataFrames INFO: Precompiling module DataFrames. WARNING: Method definition ==(Base.Nullable{S}, Base.Nullable{T}) in module Base at nullable.jl:238 overwritten in module NullableArrays at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/NullableArrays/src/operators.jl:99. WARNING: Module DataFrames with uuid 9056792397081 is missing from the cache. This may mean module DataFrames does not support precompilation but is imported by a module that does. ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled. Stacktrace: [1] _require(::Symbol) at ./loading.jl:455 [2] require(::Symbol) at ./loading.jl:405 [3] include_from_node1(::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? [4] include(::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? [5] anonymous at ./<missing>:2 while loading /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/DataStreams/src/DataStreams.jl, in expression starting on line 248 ERROR: LoadError: LoadError: Failed to precompile DataStreams to /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/lib/v0.6/DataStreams.ji. Stacktrace: [1] compilecache(::String) at ./loading.jl:710 [2] _require(::Symbol) at ./loading.jl:463 [3] require(::Symbol) at ./loading.jl:405 [4] include_from_node1(::String) at ./loading.jl:576 [5] include(::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? [6] include_from_node1(::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? [7] include(::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? [8] anonymous at ./<missing>:2 while loading /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/DataFrames/src/abstractdataframe/io.jl, in expression starting on line 215 while loading /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/DataFrames/src/DataFrames.jl, in expression starting on line 97 ERROR: Failed to precompile DataFrames to /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/lib/v0.6/DataFrames.ji. Stacktrace: [1] compilecache(::String) at ./loading.jl:710 [2] _require(::Symbol) at ./loading.jl:497 [3] require(::Symbol) at ./loading.jl:405 [4] eval(::Module, ::Any) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:? (repeats 2 times) [5] macro expansion at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Atom/src/repl.jl:117 [inlined] [6] anonymous at ./<missing>:?


#2

I often see errors like this when I attempt to update a package which I’ve already imported in the current Julia session. That is:

using Foo
Pkg.update()
using Foo # this throws a precompilation error

The solution in that case is simply to restart Julia and do using Foo again. Does that help in your case?


#3

This looks like JuliaPro? I don’t think it supports package updates…


#4

@robin it didn’t – I already tried and keep getting the same error message.

@david yes, it’s JuliaPro – so I suppose in that case I should simply install JuliaPro anew?