Closed TK-21st closed 4 years ago
I've still been using this with 0.6. I plan on updating it to 1.0 soon but haven't had the time yet. Thank you for your patience.
I also ran into some problems with Julia 1.0.0. I am new at Julia as well, so I can't fix them on my own:
julia run_tests.jl
I get:
┌ Warning: Package CGP does not have PaddedViews in its dependencies:
│ - If you have CGP checked out for development and have
│ added PaddedViews as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with CGP
└ Loading PaddedViews into CGP from project dependency, future warnings for CGP are suppressed.
ERROR: LoadError: UndefVarError: INFO not defined
Stacktrace:
[1] top-level scope at none:0
[2] include at .\boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1038
[4] include(::Module, ::String) at .\sysimg.jl:29
[5] top-level scope at none:2
[6] eval at .\boot.jl:319 [inlined]
[7] eval(::Expr) at .\client.jl:389
[8] top-level scope at .\none:3
in expression starting at C:\Users\fixc3hp\.julia\dev\CGP\src\CGP.jl:7
If I remove line 7 in CGP.jl, the next error I get is:
ERROR: LoadError: LoadError: MethodError: no method matching Array{Function,N} where N(::Int64)
Closest candidates are:
Array{Function,N} where N(!Matched::UndefInitializer, !Matched::Int64) where T at boot.jl:408
Array{Function,N} where N(!Matched::UndefInitializer, !Matched::Int64, !Matched::Int64) where T at boot.jl:409
Array{Function,N} where N(!Matched::UndefInitializer, !Matched::Int64, !Matched::Int64, !Matched::Int64) where T at boot.jl:410
...
Stacktrace:
[1] top-level scope at none:0
[2] include at .\boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1038
[4] include at .\sysimg.jl:29 [inlined]
[5] include(::String) at C:\Users\fixc3hp\.julia\dev\CGP\src\CGP.jl:1
[6] top-level scope at none:0
[7] include at .\boot.jl:317 [inlined]
[8] include_relative(::Module, ::String) at .\loading.jl:1038
[9] include(::Module, ::String) at .\sysimg.jl:29
[10] top-level scope at none:2
[11] eval at .\boot.jl:319 [inlined]
[12] eval(::Expr) at .\client.jl:389
[13] top-level scope at .\none:3
in expression starting at C:\Users\fixc3hp\.julia\dev\CGP\src\config.jl:9
in expression starting at C:\Users\fixc3hp\.julia\dev\CGP\src\CGP.jl:9
This line can be fixed by replacing it with functions = Array{Function}(undef,0)
, but then there are more errors.
new version works with Julia 1.5.0
I'm new to Julia so pardon me if the questions are n00b, but here's the issue:
Problem
deps
in environment)julia dev/CGP/experiments/xor.jl
, get backThanks for open-sourcing this code, been meaning to trying out the algorithms in the recent Atari paper for a while.