You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading DataPackage country list seems to raise an issue with this library
julia>using DataPackage
julia> data_url ="https://raw.githubusercontent.com/datasets/country-list/master/datapackage.json""https://raw.githubusercontent.com/datasets/country-list/master/datapackage.json"
julia> package =Package(data_url)
ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type String
Closest candidates are:convert(::Type{T<:AbstractString}, ::T<:AbstractString) where T<:AbstractString at strings/basic.jl:208convert(::Type{T<:AbstractString}, ::AbstractString) where T<:AbstractString at strings/basic.jl:209convert(::Type{T}, ::T) where T at essentials.jl:167
Stacktrace:
[1] (::getfield(DataPackage, Symbol("##Resource#1#3")))(::Bool, ::Type{Resource}, ::Dict{String,Any}) at /Users/scls/.julia/dev/DataPackage/src/resource.jl:28
[2] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:strict,),Tuple{Bool}}, ::Type{Resource}, ::Dict{String,Any}) at ./none:0
[3] Package(::Dict{String,Any}, ::Bool) at /Users/scls/.julia/dev/DataPackage/src/package.jl:17
[4] Package(::String, ::Bool) at /Users/scls/.julia/dev/DataPackage/src/package.jl:25 (repeats 2 times)
[5] top-level scope at REPL[48]:1
@scls19fr bonne année! Thanks for raising. Did you find a workaround? It looks like a condition that should be handled in our code. I'll try to look into it.
Hello,
Reading DataPackage country list seems to raise an issue with this library
See also https://discourse.julialang.org/t/country-codes/4010/7
Kind regards
The text was updated successfully, but these errors were encountered: