Hi, I'm very optimistic about the new package manager. However, I can't get it to install anything. Following the readme:
using Pkg3
pkg> add JSON
ERROR: The following package names could not be resolved:
* JSON (not found in project, manifest or registry)
Please specify by known `name=uuid`.
versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake-avx512)
Hmm, I can not reproduce.
julia> using Pkg3
pkg> add JSON
INFO: Cloning default registries into /Users/kristoffer/.julia/registries
INFO: [+] Uncurated = "https://github.com/JuliaRegistries/Uncurated.git"
INFO: Resolving package versions
INFO: Installed Nullables ─ v0.0.2
INFO: Installed SHA ─────── v0.5.1
INFO: Installed Compat ──── v0.44.0
INFO: Installed JSON ────── v0.16.3
INFO: Updating "Project.toml"
[682c06a0] + JSON v0.16.3
INFO: Updating "Manifest.toml"
[682c06a0] + JSON v0.16.3
[4d1e1d77] + Nullables v0.0.2
Could you try delete .julia/registries and try again?
Yes, this worked. I don't know why it wasn't created (the dir was empty). I had tried deleting the v0.6 folder but nothing changed. Thanks
I'm experiencing the same issue on today's master (built with precompiled Pkg3: export JULIA_PKG3_PRECOMPILE=true; make). After removing the registries folder, this is what happens:
pkg> add JSON
[ Info: Pkg3 is still under development, please file issues at `https://github.com/JuliaLang/Pkg3.jl`.
[ Info: Cloning default registries into /home/pietro/.julia/registries
[ Info: [+] Uncurated = "https://github.com/JuliaRegistries/Uncurated.git"
ERROR: The following package names could not be resolved:
* JSON (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Strangely enough there actually is a folder called JSON: ~/.julia/registries/J/JSON
EDIT: I've just seen the message on slack, will wait a few more days until it stabilizes a bit more and then try again.
You should only have to wait a few hours until https://github.com/JuliaLang/julia/pull/26152 is merged.
Yes, that fixed it : it works beautifully now!
Same problem here using compiled binary version.
delete ~/.julia/registries solves my problem as KristofferC suggested
Deleting %USERPROFILE%\.julia\registries worked on Windows.
Most helpful comment
Hmm, I can not reproduce.
Could you try delete
.julia/registriesand try again?