JuliaGeo / GADM.jl

A Julia package for obtaining geographical data from the GADM dataset
https://gadm.org
MIT License
38 stars 4 forks source link

get function doesn't work #16

Closed juliohm closed 3 years ago

juliohm commented 3 years ago

Here is what I get when I try the master branch:

ERROR: IOError: could not spawn `unzip -x /home/juliohm/.julia/datadeps/GADM_BRA/gadm36_BRA_gpkg.zip -d /home/juliohm/.julia/datadeps/GADM_BRA`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at ./process.jl:99
 [2] #585 at ./process.jl:112 [inlined]
 [3] setup_stdios(::Base.var"#585#586"{Cmd}, ::Array{Any,1}) at ./process.jl:196
 [4] _spawn at ./process.jl:111 [inlined]
 [5] run(::Cmd; wait::Bool) at ./process.jl:439
 [6] run at ./process.jl:438 [inlined]
 [7] unpack(::String; keep_originals::Bool) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/post_fetch_helpers.jl:63
 [8] unpack at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/post_fetch_helpers.jl:63 [inlined]
 [9] #16 at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution_automatic.jl:122 [inlined]
 [10] cd(::DataDeps.var"#16#17"{typeof(DataDeps.unpack),String}, ::String) at ./file.jl:104
 [11] run_post_fetch(::typeof(DataDeps.unpack), ::String) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution_automatic.jl:119
 [12] download(::DataDeps.DataDep{Nothing,String,typeof(DataDeps.fetch_default),typeof(DataDeps.unpack)}, ::String; remotepath::String, i_accept_the_terms_of_use::Nothing, skip_checksum::Bool) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution_automatic.jl:84
 [13] download at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution_automatic.jl:70 [inlined]
 [14] handle_missing at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution_automatic.jl:10 [inlined]
 [15] _resolve(::DataDeps.DataDep{Nothing,String,typeof(DataDeps.fetch_default),typeof(DataDeps.unpack)}, ::String) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:83
 [16] resolve(::DataDeps.DataDep{Nothing,String,typeof(DataDeps.fetch_default),typeof(DataDeps.unpack)}, ::String, ::String) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:29
 [17] resolve(::String, ::String, ::String) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:54
 [18] resolve at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:73 [inlined]
 [19] download(::String) at /home/juliohm/.julia/packages/Geography/IdS6b/src/download.jl:36
 [20] get(::String) at /home/juliohm/.julia/packages/Geography/IdS6b/src/polygon.jl:87
 [21] top-level scope at REPL[8]:1
caused by [exception 1]
KeyError: key "GADM_BRA" not found
Stacktrace:
 [1] getindex at ./dict.jl:467 [inlined]
 [2] resolve(::String, ::String, ::String) at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:54
 [3] resolve at /home/juliohm/.julia/packages/DataDeps/PcUPE/src/resolution.jl:73 [inlined]
 [4] download(::String) at /home/juliohm/.julia/packages/Geography/IdS6b/src/download.jl:26
 [5] get(::String) at /home/juliohm/.julia/packages/Geography/IdS6b/src/polygon.jl:87
 [6] top-level scope at REPL[8]:1
zerefwayne commented 3 years ago

The issue is due to unzip not being installed by default in Manjaro.

juliohm commented 3 years ago

Closing this issue as it has been identified in a dependency.