JuliaStats / RDatasets.jl

Julia package for loading many of the data sets available in R
GNU General Public License v3.0
159 stars 56 forks source link

Compilation error: "Declaring __precompile__(false) is not allowed in files that are being precompiled." #52

Closed emonigma closed 5 years ago

emonigma commented 6 years ago

I am testing code that uses the Zeilig dataset. I run these commands and get this output:

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> Pkg.add("RDatasets")
INFO: Package RDatasets is already installed

julia> using RDatasets
INFO: Precompiling module RDatasets.
WARNING: Module Compat with uuid 229436453490 is missing from the cache.
This may mean module Compat 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 ./loading.jl:576
 [4] include(::String) at ./sysimg.jl:14
 [5] anonymous at ./<missing>:2
while loading ~/.julia/v0.6/FileIO/src/FileIO.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile FileIO to ~/.julia/lib/v0.6/FileIO.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 ./sysimg.jl:14
 [6] anonymous at ./<missing>:2
while loading ~/.julia/v0.6/RDatasets/src/RDatasets.jl, in expression starting on line 4
ERROR: Failed to precompile RDatasets to ~/.julia/lib/v0.6/RDatasets.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:710
 [2] _require(::Symbol) at ./loading.jl:497
 [3] require(::Symbol) at ./loading.jl:405
julia> Pkg.status()
12 required packages:
 - CSV                           0.2.5
 - Cairo                         0.5.2
 - Colors                        0.8.2
 - Compose                       0.6.0
 - DataFrames                    0.11.6
 - Documenter                    0.18.0
 - GLM                           0.11.0
 - Gadfly                        0.7.0
 - Gallium                       0.1.0
 - RDatasets                     0.4.0
 - Revise                        0.1.1
 - StatsModels                   0.2.5
...

I am running Julia 0.6.3 on macOS High Sierra, 10.13.5.

randyzwitch commented 5 years ago

Errors like these are usually transient; if this continues to be an issue with julia 1.0, please open another issue