JuliaAttic / OldGraphs.jl

Working with graphs in Julia
Other
205 stars 81 forks source link

Julia 0.4: Load error : Range1 not defined` #178

Open AlainLich opened 9 years ago

AlainLich commented 9 years ago

Hi,

I am experiencing a load error with message: ERROR: LoadError: LoadError: UndefVarError: Range1 not defined

with Graphs version corresponding to following commit:

commit 6de2f20dc982c5d0bd4813797d2c2cfb270931e4
Author: Dahua Lin <lindahua@gmail.com>
Date:   Sun Apr 19 07:47:19 2015 +0800

    REQUIRE DataStructures 0.3.8
julia> versioninfo()
Julia Version 0.4.0-dev+4704
Commit cd2c363* (2015-05-07 03:55 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
using Graphs
ERROR: LoadError: LoadError: UndefVarError: Range1 not defined
 in include at ./boot.jl:252
 in include_from_node1 at ./loading.jl:134
 in include at ./boot.jl:252
 in include_from_node1 at ./loading.jl:134
 in reload_path at ./loading.jl:158
 in _require at ./loading.jl:70
 in require at ./loading.jl:53
while loading /home/alain/.julia/v0.4/Graphs/src/edge_list.jl, in expression starting on line 11
while loading /home/alain/.julia/v0.4/Graphs/src/Graphs.jl, in expression starting on line 127

Is any correction available? I would also appreciate some precision about what is (or was) Range1

mlubin commented 9 years ago

DataStructures 0.3.9 has been released, give it a try with Pkg.update()

timholy commented 9 years ago

Range1 is the old name for a UnitRange. This was the inspiration for https://github.com/JuliaLang/julia/issues/11200

AlainLich commented 9 years ago

Thanks, I am currently using DataStructures 0.3.9, and (still) experiencing the load error.

Keno commented 9 years ago

I have this fixed locally, will make a PR.

Keno commented 9 years ago

180

AlainLich commented 9 years ago

Hi, could you please add a new tag so that the commit corresponding to this fix #180 gets automatically loaded by Pkg.update().

PS: I would appreciate comments (and possibly approval) for my PRs #182 #183 since they enable interesting graphs in https://github.com/AlainLich/MetadataTools.jl (another candidate for a PR this time in https://github.com/IainNZ/MetadataTools.jl). Otherwise, I'll need to find a workaround.