Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drcxcruz opened this issue Jan 5, 2020 · 2 comments
Open

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

drcxcruz opened this issue Jan 5, 2020 · 2 comments

Comments

@drcxcruz
Copy link

drcxcruz commented Jan 5, 2020

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

@davidanthoff
Copy link
Member

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?

@StefanKarpinski
Copy link

StefanKarpinski commented Jan 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants