Queryverse.jl icon indicating copy to clipboard operation
Queryverse.jl copied to clipboard

Atom with Julia 1.2: Pkg.add("Queryverse") not working

Open drcxcruz opened this issue 6 years ago • 2 comments

hi,

I am able to add the individual packages of Queryvserse. However, Pkg.add("Queryverse") is not working Atom with Julia 1.2 with the following error. I got the same error from my local Anaconda Jupiter. thanks for looking at it.

julia> Pkg.add("Queryverse") Resolving package versions... ERROR: MethodError: Cannot convert an object of type Nothing to an object of type String Closest candidates are: convert(::Type{String}, ::WeakRefStrings.WeakRefString) at C:\Users\drcxcruz.juliapro\JuliaPro_v1.2.0-1\packages\WeakRefStrings\POE8H\src\WeakRefStrings.jl:77 convert(::Type{String}, ::TextParse.VectorBackedUTF8String) at C:\Users\drcxcruz.juliapro\JuliaPro_v1.2.0-1\packages\TextParse\tFXtC\src\VectorBackedStrings.jl:84 convert(::Type{T<:AbstractString}, ::T<:AbstractString) where T<:AbstractString at strings/basic.jl:208 ... Stacktrace: [1] setindex!(::Dict{Base.UUID,String}, ::Nothing, ::Base.UUID) at .\dict.jl:380 [2] deps_graph(::Pkg.Types.Context, ::Dict{Base.UUID,String}, ::Dict{Base.UUID,Pkg.Types.VersionSpec}, ::Dict{Base.UUID,Pkg.Types.Fixed}) at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:312 [3] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Nothing) at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:386 [4] resolve_versions! at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:328 [inlined] [5] #add_or_develop#63(::Array{Base.UUID,1}, ::Symbol, ::typeof(Pkg.Operations.add_or_develop), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:1235 [6] #add_or_develop at .\none:0 [inlined] [7] #add_or_develop#17(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add_or_develop), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\API.jl:59 [8] #add_or_develop at .\none:0 [inlined] [9] #add_or_develop#16 at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\API.jl:36 [inlined] [10] #add_or_develop at .\none:0 [inlined] [11] #add_or_develop#13 at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\API.jl:34 [inlined] [12] #add_or_develop at .\none:0 [inlined] [13] #add_or_develop#12(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::typeof(Pkg.API.add_or_develop), ::String) at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\API.jl:33 [14] add(::String) at .\none:0 [15] top-level scope at none:0

drcxcruz avatar Jan 05 '20 18:01 drcxcruz

That looks like an error in Pkg.jl to me. I would try with Julia 1.3, and I would avoid JuliaPro, I keep seeing error reports that it is buggy.

@StefanKarpinski, is this a known problem?

davidanthoff avatar Jan 06 '20 01:01 davidanthoff

I seem to recall some issue like this. There were no point releases of 1.2, so the way to get bugfixes is to upgrade to the latest release, which is 1.3.1. However, WeakRefStrings are not used anywhere in Pkg, so it's possible this is a different error.

StefanKarpinski avatar Jan 06 '20 17:01 StefanKarpinski