Skip to content
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

Precompilation Error #489

Closed
MLackner opened this issue Aug 27, 2019 · 6 comments
Closed

Precompilation Error #489

MLackner opened this issue Aug 27, 2019 · 6 comments

Comments

@MLackner
Copy link

MLackner commented Aug 27, 2019

I get the following error during precompilation. I guess CSV is not able to find the Parsers.Options function.

(SFGTools) pkg> precompile
Precompiling project...
Precompiling CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
ERROR: LoadError: LoadError: UndefVarError: Options not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:326 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at /Users/lackner/.julia/packages/CSV/KgT4M/src/CSV.jl:1
 [7] top-level scope at none:0
 [8] include at ./boot.jl:326 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:328 [inlined]
 [13] eval(::Expr) at ./client.jl:404
 [14] top-level scope at ./none:3
in expression starting at /Users/lackner/.julia/packages/CSV/KgT4M/src/filedetection.jl:167
in expression starting at /Users/lackner/.julia/packages/CSV/KgT4M/src/CSV.jl:15
ERROR: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to /Users/lackner/.julia/compiled/v1.1/CSV/HHBkp.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] precompile(::Pkg.Types.Context) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:429
 [4] do_precompile!(::Dict{Symbol,Any}, ::Array{String,1}, ::Dict{Symbol,Any}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:612
 [5] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:742
 [6] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
 [7] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:561
 [8] #do_cmd#30(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:536
 [9] do_cmd at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:532 [inlined]
 [10] (::getfield(Pkg.REPLMode, Symbol("##48#51")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:967
 [11] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [12] invokelatest at ./essentials.jl:741 [inlined]
 [13] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:2273
 [14] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:1035
 [15] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:192
 [16] (::getfield(Base, Symbol("##734#736")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362
 [17] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [18] invokelatest at ./essentials.jl:741 [inlined]
 [19] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
 [20] exec_options(::Base.JLOptions) at ./client.jl:284
 [21] _start() at ./client.jl:436
(SFGTools) pkg> st
Project SFGTools v1.0.0
    Status `~/.julia/dev/SFGTools/Project.toml`
  [d04cd5f8] + AndorSIF v0.0.1 #v1.0fixes (https://github.com/MLackner/AndorSIF.jl)
  [336ed68f] + CSV v0.5.11
  [a93c6f00] + DataFrames v0.19.3
  [39dd38d3] + Dierckx v0.4.1
  [5789e2e9] + FileIO v1.0.7
  [6218d12a] + ImageMagick v0.7.5
  [682c06a0] + JSON v0.21.0
  [9c8b4983] + LightXML v0.8.0
  [429524aa] + Optim v0.17.2
  [ade2ca70] + Dates 
  [8bb1440f] + DelimitedFiles 
  [9a3f8284] + Random 
  [10745b16] + Statistics 
  [8dfed614] + Test 
    Status `~/.julia/dev/SFGTools/Manifest.toml`
  [d04cd5f8] + AndorSIF v0.0.1 #v1.0fixes (https://github.com/MLackner/AndorSIF.jl)
  [336ed68f] + CSV v0.5.11
  [a93c6f00] + DataFrames v0.19.3
  [39dd38d3] + Dierckx v0.4.1
  [5789e2e9] + FileIO v1.0.7
  [6218d12a] + ImageMagick v0.7.5
  [682c06a0] + JSON v0.21.0
  [9c8b4983] + LightXML v0.8.0
  [429524aa] + Optim v0.17.2
  [ade2ca70] + Dates 
  [8bb1440f] + DelimitedFiles 
  [9a3f8284] + Random 
  [10745b16] + Statistics 
  [8dfed614] + Test 
@MLackner
Copy link
Author

updating CSV.jl to the latest version in my root environment solved the issue

@quinnj quinnj closed this as completed Aug 30, 2019
@Beramos
Copy link

Beramos commented Nov 19, 2019

I have the same error with Julia V1.0.5

(neuralFouling) pkg> st
    Status `~/xxxxxxxxxxxxxxxxxxx/neuralFouling/Project.toml`
  [fbb218c0] BSON v0.2.4
  [336ed68f] CSV v0.5.17
  [35d6a980] ColorSchemes v3.5.0
  [a93c6f00] DataFrames v0.19.4
  [aae7a2af] DiffEqFlux v0.8.0
  [0c46a032] DifferentialEquations v6.8.0
  [587475ba] Flux v0.9.0
  [91a5bcdd] Plots v0.27.0
  [44d3d7a6] Weave v0.9.1
  [37e2e46d] LinearAlgebra 
  [9a3f8284] Random 

Edit:
Precompiling this environment produces the following error trace

Precompiling CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
ERROR: LoadError: LoadError: UndefVarError: Options not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1044
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at /xxxxxx/.julia/packages/CSV/yJFAJ/src/CSV.jl:1
 [7] top-level scope at none:0
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1044
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:393
 [14] top-level scope at ./none:3
in expression starting at /xxxxxx/.julia/packages/CSV/yJFAJ/src/detection.jl:222
in expression starting at /xxxxxx/.julia/packages/CSV/yJFAJ/src/CSV.jl:15
ERROR: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to /home/bram/.julia/compiled/v1.0/CSV/HHBkp.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] precompile(::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:519
 [4] do_precompile!(::Dict{Symbol,Any}, ::Array{String,1}, ::Dict{Symbol,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:662
 [5] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:697
 [6] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:696
 [7] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:603
 [8] #do_cmd#33(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:577
 [9] do_cmd at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:573 [inlined]
 [10] (::getfield(Pkg.REPLMode, Symbol("##50#53")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:923
 [11] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [12] invokelatest at ./essentials.jl:696 [inlined]
 [13] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/LineEdit.jl:2273
 [14] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:1034
 [15] run_repl(::REPL.AbstractREPL, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:191
 [16] (::getfield(Base, Symbol("##720#722")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:355
 [17] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [18] invokelatest at ./essentials.jl:696 [inlined]
 [19] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:339
 [20] exec_options(::Base.JLOptions) at ./client.jl:277
 [21] _start() at ./client.jl:425

Edit (2):

I pinned the CSV version to v0.4.3, now it is working. But I don't really understand why it is not working for the version that Pkg installs.

@quinnj
Copy link
Member

quinnj commented Nov 19, 2019

@Beramos, not sure what's going on? Did you run ] up? What exactly is the error you're seeing? It's not clear which package isn't updating for you.

@Beramos
Copy link

Beramos commented Nov 19, 2019

@quinnj I made an edit my apologies for being unclear

@quinnj
Copy link
Member

quinnj commented Nov 19, 2019

Hmmm.......not sure why Parsers isnt' getting upgraded; maybe try ] add Parsers; or ] up Parsers?

@Beramos
Copy link

Beramos commented Nov 24, 2019

It works with a manual upgrade of Parsers. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants