Open zap7 opened 5 years ago
I'm having the same issue with the added line "in expression starting at" line 4 of the "optimize_multiple_lineups_baseball.jl", which references this code "include("baseball_formulations.jl").
julia> include("/home/norden/Documents/DFS/Picking Winners Study - Baseball/optimize_multiple_lineups_baseball.jl") ERROR: LoadError: LoadError: LoadError: UndefVarError: @defVar not defined Stacktrace: [1] top-level scope [2] include at ./boot.jl:326 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1038 [4] include(::Module, ::String) at ./sysimg.jl:29 [5] include(::String) at ./client.jl:403 [6] top-level scope at none:0 [7] include at ./boot.jl:326 [inlined] [8] include_relative(::Module, ::String) at ./loading.jl:1038 [9] include(::Module, ::String) at ./sysimg.jl:29 [10] include(::String) at ./client.jl:403 [11] top-level scope at none:0 in expression starting at /home/norden/Documents/DFS/Picking Winners Study - Baseball/baseball_formulations.jl:59 in expression starting at /home/norden/Documents/DFS/Picking Winners Study - Baseball/baseball_formulations.jl:31 in expression starting at /home/norden/Documents/DFS/Picking Winners Study - Baseball/optimize_multiple_lineups_baseball.jl:4
I was able to get past this by using julia v0.4.0 and JuMP v0.12.1
I'm trying to put together a docker file which sets up an environment with the correct pins, and in it I have:
FROM julia:0.4.0
RUN apt-get update && apt-get install git-core && apt-get clean
RUN julia -e 'Pkg.add("JuMP")'
RUN julia -e 'Pkg.pin("JuMP", v"0.12.1")'
RUN julia -e 'Pkg.add("DataFrames")'
RUN julia -e 'Pkg.add("MathProgBase")'
However that doesn't seem to be sufficient as I run into other errors:
ERROR: LoadError: LoadError: Derivative of function polygamma not supported
in error at ./error.jl:21
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:22
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:19
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:87
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:19
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:87
in differentiate at /root/.julia/v0.4/Calculus/src/differentiate.jl:19
[inlined code] from /root/.julia/v0.4/ForwardDiff/src/TensorNumber.jl:289
in anonymous at no file:288
which prevent starting up the script.
It would be REALLY helpful if someone who has this project working could post the output of julia -e 'Pkg.status()'
I am having the same issue.
I'm getting the following error. Please advise.
ERROR: LoadError: LoadError: UndefVarError: @defVar not defined Stacktrace: [1] top-level scope [2] include at ./boot.jl:326 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1038 [4] include(::Module, ::String) at ./sysimg.jl:29 [5] include(::String) at ./client.jl:403 [6] top-level scope at none:0 in expression starting at /Users/johnsmith/Downloads/Daily-Fantasy-Baseball-Contests-in-DraftKings-master/baseball_formulations.jl:59 in expression starting at /Users/johnsmith/Downloads/Daily-Fantasy-Baseball-Contests-in-DraftKings-master/baseball_formulations.jl:31