I recently downloaded the v1.0.1 build on Linux to a machine where I previously had v0.6 installed.
I seem to have a problem that the registry? wasn’t initialised. Thus I cannot add any packages. I’m not sure if it is a firewall or proxy problem. I’m almost tempted to blame the v1.0.1 zip, but since I don’t see others complaining about the same problem, my guess is the problem is on my side.
julia> Pkg.update()
Resolving package versions...
(v1.0) pkg> status
Status `~/.julia/environments/v1.0/Project.toml`
(v1.0) pkg> update
Resolving package versions...
(v1.0) pkg> add DSP
ERROR: The following package names could not be resolved:
* DSP (not found in project, manifest or registry)
Please specify by known `name=uuid`.
(v1.0) pkg> add FFTW
ERROR: The following package names could not be resolved:
* FFTW (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Trying to dig a bit:
ls ~/.julia
clones lib logs registries v0.6
On another machine where I have version 1.0 working I have
ls ~/.julia
clones compiled dev environments lib logs packages registries v0.6
So it seems the ~/.julia/environments folder is missing.
How do I kick the new Package manage to init?
using Pkg
julia> Pkg.init()
ERROR: UndefVarError: init not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
[2] top-level scope at none:0
Alternatively how do I check that my proxy settings isn’t stuffed for use with the new package manager?
wget www.julialang.org works, thus wget can get through.
On Julia v0.6, Pkg.update() still works thus the Julia git used by the old package manager still works.
Hmm… I wonder how you ended up there. Anyway, you can just remove .julia/registries and Pkg will download a (hopefully correct) version of the General registry when you try to add something.
Yes, I wonder how that happened. My guess is I had a crash during the initial update (I was working over ssh have at times had crashes due to slow network connections resulting in perceived inactivity).
Yea, sounds likely. https://github.com/JuliaLang/Pkg.jl/pull/588 should help in situations like this, since after that PR we clone to a temporary directory, and then only if that succeeds copy it to .julia/registries.
Thank you! That works for me as well.
Before that the Julia 1.0 also only used custom registry but not the General one. After deleting and reinstalling the registries it works fine!