tedsteiner / OpenStreetMap.jl

Julia OpenStreetMap Package
Other
52 stars 18 forks source link

Error after using OpenStreetMap #86

Open hmwesigwa opened 7 years ago

hmwesigwa commented 7 years ago

Hello,

After I do

using OpenStreetMap

I get the following error and cannot properly use the functions defined. Please let me know how I can fix this. Thanks!

WARNING: Method definition (::Type{Graphs.KeyVertex})(Int64, #K<:Any) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:12 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:16.
WARNING: Method definition (::Type{Graphs.Edge})(Int64, #V<:Any, #V<:Any) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:54 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:60.
WARNING: Method definition (::Type{Graphs.ExEdge})(Int64, #V<:Any, #V<:Any, Base.Dict{String, Any}) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:72 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:83.
WARNING: Method definition (::Type{Graphs.TargetIterator})(#G<:Graphs.AbstractGraph, #EList<:Any) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:123 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:127.
WARNING: Method definition (::Type{Graphs.SourceIterator})(#G<:Graphs.AbstractGraph, #EList<:Any) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:141 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:145.
WARNING: Method definition edge_property_requirement(Graphs.AbstractEdgePropertyInspector{#T<:Any}, Graphs.AbstractGraph{#V<:Any, E<:Any}) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:164 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/common.jl:179.
WARNING: Method definition vertex_index(#V<:Union{Graphs.ExVertex, Graphs.KeyVertex}, Graphs.GenericGraph{#V<:Union{Graphs.ExVertex, Graphs.KeyVertex}, E<:Any, VList<:Any, EList<:Any, IncList<:Any}) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/graph.jl:65 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/graph.jl:67.
WARNING: Method definition (::Type{Graphs.GDistanceVisitor})(#G<:Graphs.AbstractGraph, #DMap<:Any) in module Graphs at /home/hushiji/.julia/v0.5/Graphs/src/breadth_first_visit.jl:107 overwritten at /home/hushiji/.julia/v0.5/Graphs/src/breadth_first_visit.jl:111.
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/hushiji/.julia/v0.5/OpenStreetMap/src/parseMap.jl:5
ERROR: LoadError: LoadError: UndefVarError: Bounds not defined
 in include_from_node1(::String) at ./loading.jl:488 (repeats 2 times)
 in eval(::Module, ::Any) at ./boot.jl:234
 in require(::Symbol) at ./loading.jl:415
while loading /home/hushiji/.julia/v0.5/OpenStreetMap/src/crop.jl, in expression starting on line 6
while loading /home/hushiji/.julia/v0.5/OpenStreetMap/src/OpenStreetMap.jl, in expression starting on line 38
SzymiB commented 7 years ago

I am having the same issue. This package would actually help me a lot if I could get it to work. I would appreciate any hints how that might be resolved! Thank you in advance!

samridler commented 6 years ago

I had the same problem, fixed it by pinning Geodesy package to version 0.0.1, which seems to be the only version with the Bounds type. Run the command: Pkg.pin("Geodesy", v"0.0.1") There are also three instances of Union(LLA, ENU) (with/without the space) in bounds.jl which may need to be changed to Union{LLA, ENU}, in your Geodesy source folder.