Pkg.instantiate() for Flux model zoo

Hi everyone,

I’m trying to get the examples in the Flux model zoo to run, but I’m having problems in the Pkg.instantiate() step mentioned in the README. I’ve tried it using both Julia 1.2.0 and 1.0.5 on Xubuntu 18.04 (64-bit):

c@h172x:~/src/model-zoo/text/char-rnn$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Pkg

julia> Pkg.activate(".")
Activating environment at `~/src/model-zoo/text/char-rnn/Project.toml`

julia> Pkg.instantiate()
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: Package CredentialsHandler [864e158e-919d-11e8-198e-cfe890ec4681] not found in a registry.
Stacktrace:
 [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:112
 [2] check_registered(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Operations.jl:924
 [3] #instantiate#81(::Nothing, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.instantiate), ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:480
 [4] instantiate at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:461 [inlined]
 [5] #instantiate#80 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:458 [inlined]
 [6] instantiate() at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:458
 [7] top-level scope at REPL[3]:1

On Julia 1.0.5, I get a different error:

julia> using Pkg

julia> Pkg.activate(".")
"/home/c/src/model-zoo/text/char-rnn/Project.toml"

julia> Pkg.instantiate()
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: KeyError: key "git-tree-sha1" not found
Stacktrace:
 [1] getindex(::Dict{String,Any}, ::String) at ./dict.jl:478
 [2] #instantiate#61(::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:558
 [3] #instantiate#60 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:537 [inlined]
 [4] instantiate() at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:535
 [5] top-level scope at none:0

Any ideas?

Thanks for any and all help!
-Chris

Maybe I should ask a more general question…

I’ve been trying out various models in the Flux model zoo (cartpole, pendulum, mnist, char-rnn) using Julia 1.2 and 1.0.5 on Xubuntu 18.04 (64-bit), and so far I haven’t been able to get a single model to run. I see the latest commit is October 2 of this year, so it doesn’t seem like the code should be out of date.

Has anyone gotten any of the models in the Flux model zoo working as of commit 076472c7226d924c67bebaa55659d458dd1e3a4e? Or some other recent commit? If so, which one? I’d like to start from there (something known to work) and figure out if there’s something wrong with my Julia environment setup.

Or maybe all the examples are working for everyone else, and it’s just my setup is weird (I’m still new to Julia)?

I could use some extra data points. :slight_smile:

Thanks,
Chris