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

ERROR: LoadError: UndefVarError: showarray not defined #338

Closed
swiesend opened this issue Jul 29, 2018 · 6 comments
Closed

ERROR: LoadError: UndefVarError: showarray not defined #338

swiesend opened this issue Jul 29, 2018 · 6 comments

Comments

@swiesend
Copy link

swiesend commented Jul 29, 2018

Hey Mike,

just tried to use Julia 0.7, but could not compile Flux with using Flux. Do I have to checkout a certain branch? And if so how?

Greetings!

I think this one is a similar issue:
jump-dev/JuMP.jl#1177

$ julia070beta2 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-beta2.0 (2018-07-13 19:54 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> versioninfo()
Julia Version 0.7.0-beta2.0
Commit b145832402* (2018-07-13 19:54 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_BINDIR = /opt/julia/julia-0.7.0-beta2/bin
  JULIA_NUM_THREADS = 2

building is fine...

julia> Pkg.build("Flux")
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/kvjJ/deps/build.log`

but using causes trouble:

julia> using Flux
[ Info: Precompiling module Flux
WARNING: importing deprecated binding Base.Void into Tracker.
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/Tracker.jl:13
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/Tracker.jl:27
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/back.jl:26
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/back.jl:44
ERROR: LoadError: LoadError: LoadError: UndefVarError: showarray 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:1034
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/Tracker.jl:1
 [7] top-level scope at none:0
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1034
 [10] include at ./sysimg.jl:29 [inlined]
 [11] include(::String) at /home/sebastian/.julia/packages/Flux/zHcD/src/Flux.jl:3
 [12] top-level scope at none:0
 [13] include at ./boot.jl:317 [inlined]
 [14] include_relative(::Module, ::String) at ./loading.jl:1034
 [15] include(::Module, ::String) at ./sysimg.jl:29
 [16] top-level scope at none:0
 [17] eval at ./boot.jl:319 [inlined]
 [18] eval(::Expr) at ./client.jl:394
 [19] top-level scope at ./none:3 [inlined]
 [20] top-level scope at ./<missing>:0
in expression starting at /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/array.jl:30
in expression starting at /home/sebastian/.julia/packages/Flux/zHcD/src/tracker/Tracker.jl:58
in expression starting at /home/sebastian/.julia/packages/Flux/zHcD/src/Flux.jl:17
ERROR: Failed to precompile Flux to /home/sebastian/.julia/compiled/v0.7/Flux/QdkV.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:298 [inlined]
 [3] compilecache(::Base.PkgId) at ./loading.jl:1173
 [4] _require(::Base.PkgId) at ./loading.jl:942
 [5] require(::Base.PkgId) at ./loading.jl:838
 [6] require(::Module, ::Symbol) at ./loading.jl:833
@iblislin
Copy link
Contributor

Please checkout #269. Any fixings on 0.7 are welcomed.

@MikeInnes
Copy link
Member

Will close this for now, but let us know if there's any issues on that branch

@swiesend
Copy link
Author

swiesend commented Jul 30, 2018

Actually I could not figure out how to checkout a specific branch under Julia 0.7 as Pkg.checkout is deprecated and the new docs don't make much sense to me. How to use julia-0.7?

Pkg.develop("Flux#julia-0.7")
   Cloning git-repo `Flux#julia-0.7`
ERROR: failed to clone from Flux#julia-0.7, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)

Pkg.add("Flux#julia-0.7")
   Cloning git-repo `Flux#julia-0.7`
ERROR: failed to clone from Flux#julia-0.7, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)

Pkg.add(Pkg.PackageSpec(name="Flux", version="julia-0.7"))
ERROR: MethodError: no method matching Pkg.Types.PackageSpec(; name="Flux", version="julia-0.7")
Closest candidates are:
  Pkg.Types.PackageSpec() at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:161 got unsupported keyword arguments "name", "version"
  Pkg.Types.PackageSpec(::AbstractString) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:169 got unsupported keyword arguments "name", "version"
  Pkg.Types.PackageSpec(::AbstractString, ::Base.UUID) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:167 got unsupported keyword arguments "name", "version"

@MikeInnes
Copy link
Member

You probably want the docs for Pkg.jl. There's a new repl mode you can access with ], and from there you can try add Flux#julia-0.7.

@swiesend
Copy link
Author

swiesend commented Jul 30, 2018

Thanks a lot!

But is it expected to behave with Warning: project file for Flux is missing a `version` entry?

(v0.7) pkg> add Flux#julia-0.7
   Cloning git-repo `https://github.com/FluxML/Flux.jl.git`
  Updating git-repo `https://github.com/FluxML/Flux.jl.git`
┌ Warning: project file for Flux at /tmp/tmpHkj3BC is missing a `version` entry
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:615
 Resolving package versions...
┌ Warning: project file for Flux is missing a `version` entry
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:151
  Updating `~/.julia/environments/v0.7/Project.toml`
  [587475ba]  Flux v0.5.3  v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git)
  Updating `~/.julia/environments/v0.7/Manifest.toml`
  [a237f610] - DataFlow v0.3.1
  [587475ba]  Flux v0.5.3  v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git)
  [e5e0dc1b] - Juno v0.5.1
  [50d2b5c4] - Lazy v0.12.1
  [e89f7d12] - Media v0.4.0
  [e1d29d7a] + Missings v0.2.10
  [a2af1166] + SortingAlgorithms v0.3.0
  [2913bbd2] + StatsBase v0.24.0
  [9abbd945] - Profile 

(v0.7) pkg> develop Flux#julia-0.7
   Cloning git-repo `https://github.com/FluxML/Flux.jl.git`
  Updating git-repo `https://github.com/FluxML/Flux.jl.git`
┌ Warning: project file for Flux at /tmp/tmpijtxwH is missing a `version` entry
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:615
 Resolving package versions...
┌ Warning: project file for Flux is missing a `version` entry
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:151
  Updating `~/.julia/environments/v0.7/Project.toml`
  [587475ba] ~ Flux v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git) ⇒ v0.5.3+ [`~/.julia/dev/Flux`]
  Updating `~/.julia/environments/v0.7/Manifest.toml`
  [587475ba] ~ Flux v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git) ⇒ v0.5.3+ [`~/.julia/dev/Flux`]

(v0.7) pkg> add Flux#julia-0.7
  Updating git-repo `https://github.com/FluxML/Flux.jl.git`
┌ Warning: project file for Flux at /home/sebastian/.julia/packages/Flux/trfu is missing a `version` entry
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:615
 Resolving package versions...
┌ Warning: project file for Flux is missing a `version` entry
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:151
  Updating `~/.julia/environments/v0.7/Project.toml`
  [587475ba] ~ Flux v0.5.3+ [`~/.julia/dev/Flux`]  v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git)
  Updating `~/.julia/environments/v0.7/Manifest.toml`
  [587475ba] ~ Flux v0.5.3+ [`~/.julia/dev/Flux`]  v0.5.3+ #julia-0.7 (https://github.com/FluxML/Flux.jl.git)

@MikeInnes
Copy link
Member

That's fine for now. You'll get a lot of warnings, which I'm in the process of clearing up.

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