JuliaData / NamedTuples.jl

[DEPRECATED] NamedTuples.jl
Other
30 stars 17 forks source link

LoadError: UndefVarError when loading NamedTuples #75

Closed sidravi1 closed 6 years ago

sidravi1 commented 6 years ago

Hi - I'm new to Julia. I'm not able to load NamedTuples.

[julia> using NamedTuples
[ Info: Precompiling NamedTuples [73a701b4-84e1-5df0-88ff-1968ee2ee8dc]
ERROR: LoadError: UndefVarError: start 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:1038
 [5] include(::Module, ::String) at ./sysimg.jl:29
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:319 [inlined]
 [8] eval(::Expr) at ./client.jl:389
 [9] top-level scope at ./none:3
in expression starting at /Users/sidravinutala/.julia/packages/NamedTuples/MIrnh/src/NamedTuples.jl:16
ERROR: Failed to precompile NamedTuples [73a701b4-84e1-5df0-88ff-1968ee2ee8dc] to /Users/sidravinutala/.julia/compiled/v1.0/NamedTuples/SN1pr.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834

I installed NamedTuples using Pkg. Here's my environment

(v1.0) pkg> status
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.3
  [336ed68f] CSV v0.3.1
  [a93c6f00] DataFrames v0.13.1
  [38e38edf] GLM v0.11.0
  [28b8d3ca] GR v0.32.3
  [7073ff75] IJulia v1.9.3
  [699e389a] IntroToJulia v0.0.0 [`~/.julia/dev/IntroToJulia`]
  [42fd0dbc] IterativeSolvers v0.7.1
  [e5e0dc1b] Juno v0.5.2
  [6f286f6a] MultivariateStats v0.5.0
  [73a701b4] NamedTuples v4.0.2
  [58dd65bb] Plotly v0.1.1
  [f0f68f2c] PlotlyJS v0.10.2
  [91a5bcdd] Plots v0.19.3
  [1a8c2f83] Query v0.9.3
  [189a3867] Reexport v0.2.0
  [1986cc42] Unitful v0.11.0
  [0f1e0344] WebIO v0.3.0

Any help would be greatly appreciated! Thank you.

omus commented 6 years ago

NamedTuples.jl isn't (and probably won't be) supported on Julia 1.0 as NamedTuple functionality now exists within Julia itself. See: https://docs.julialang.org/en/stable/manual/types/#Named-Tuple-Types-1

omus commented 6 years ago

I'm going to upper bound NamedTuples.jl so it is more obvious what is going on.

omus commented 6 years ago

https://github.com/JuliaLang/METADATA.jl/pull/17104