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

Error installing Survival.jl - not a valid package name #12

Closed
mcfefa opened this issue Apr 23, 2019 · 2 comments
Closed

Error installing Survival.jl - not a valid package name #12

mcfefa opened this issue Apr 23, 2019 · 2 comments

Comments

@mcfefa
Copy link
Contributor

mcfefa commented Apr 23, 2019

When I try to install Survival.jl (per the documentation instructions), I get an error saying that it is not a valid package name (see below). Do I need to specify anything else regarding the fact that package is not yet registered in Julia's General package registry? I came across this error when trying to use this package in a jupyter notebook (via using IJulia; notebook()).

using Pkg;
Pkg.add("https://github.com/JuliaStats/Survival.jl")
Pkg.resolve();

https://github.com/JuliaStats/Survival.jl is not a valid packagename

Stacktrace:
 [1] pkgerror(::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
 [2] check_package_name(::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:22
 [3] iterate at ./generator.jl:47 [inlined]
 [4] collect(::Base.Generator{Array{String,1},typeof(Pkg.API.check_package_name)}) at ./array.jl:619
 [5] #add_or_develop#11(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::Array{String,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:28
 [6] #add_or_develop at ./none:0 [inlined]
 [7] #add_or_develop#10 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:27 [inlined]
 [8] #add_or_develop at ./none:0 [inlined]
 [9] #add#18 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69 [inlined]
 [10] add(::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69
 [11] top-level scope at In[2]:2
@ararslan
Copy link
Member

Good catch, the docs are incorrect. It should be

using Pkg
Pkg.add(PackageSpec(url="https://github.com/JuliaStats/Survival.jl"))

@mcfefa
Copy link
Contributor Author

mcfefa commented Apr 23, 2019

That was it, thanks!

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

2 participants