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

"____ may not be a registered package" #3

Open
cscherrer opened this issue Nov 3, 2021 · 5 comments
Open

"____ may not be a registered package" #3

cscherrer opened this issue Nov 3, 2021 · 5 comments

Comments

@cscherrer
Copy link

Hi, thanks for the nice package. I've been using it for a while now and finding it really helpful.

Recently, I've started seeing some strange behavior. For example, here's the result from the Soss.jl environment:

julia> using PkgVersionHelper

julia> upcheck()
SymbolicCodegen may not be a registered package
SimplePartitions may not be a registered package
MeasureBase may not be a registered package
StatsFuns may not be a registered package
DiffResults may not be a registered package
TupleVectors may not be a registered package
GeneralizedGenerated may not be a registered package
ArrayInterface may not be a registered package
Reexport may not be a registered package
MacroTools may not be a registered package
JuliaVariables may not be a registered package
IRTools may not be a registered package
TransformVariables may not be a registered package
SimpleGraphs may not be a registered package
SampleChains may not be a registered package
RuntimeGeneratedFunctions may not be a registered package
SpecialFunctions may not be a registered package
SimplePosets may not be a registered package
MeasureTheory may not be a registered package
SymbolicUtils may not be a registered package
RecipesBase may not be a registered package
NestedTuples may not be a registered package
NamedTupleTools may not be a registered package
FillArrays may not be a registered package
Requires may not be a registered package
Distributions may not be a registered package
MappedArrays may not be a registered package
MLStyle may not be a registered package
StatsBase may not be a registered package
Dict{String, Tuple{VersionNumber, VersionNumber}}()

Any idea what's going on here?

@xiaodaigh
Copy link
Owner

Suspect might because your DEPOT_PATH is not pointed to the General Repository?

What does println(DEPOT_PATH) show? or perhaps the General Repository is corrupted/changed somehow.

@cscherrer
Copy link
Author

chad@boondoggle ~> julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.0-rc2 (2021-10-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> println(DEPOT_PATH)
["/home/chad/.julia", "/home/chad/julia/julia-1.7.0-rc2/local/share/julia", "/home/chad/julia/julia-1.7.0-rc2/share/julia"]

julia> using PkgVersionHelper

julia> upcheck()
JuliaFormatter may not be a registered package
Plots may not be a registered package
QuasiMonteCarlo may not be a registered package
Measurements may not be a registered package
PkgVersionHelper may not be a registered package
ResumableFunctions may not be a registered package
ZigZagBoomerang may not be a registered package
OnlineStats may not be a registered package
Revise may not be a registered package
BenchmarkTools may not be a registered package
Dictionaries may not be a registered package
StructArrays may not be a registered package
ForwardDiff may not be a registered package
Distributions may not be a registered package
ParameterHandling may not be a registered package
Dict{String, Tuple{VersionNumber, VersionNumber}}()

julia> versioninfo()
Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen Threadripper 2950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, znver1)

@jaakkor2
Copy link
Contributor

In Julia 1.7 the general registry is in a compressed tar file, but PkgVersionHelper still looks into the old-style .julia/registries/General-folder.

https://docs.julialang.org/en/v1.7-dev/NEWS/ says

Registries downloaded from the Pkg Server (not git) are no longer uncompressed into files but instead read directly from the compressed tarball into memory. This improves performance on filesystems which do not handle a large number of files well. To turn this feature off, set the environment variable JULIA_PKG_UNPACK_REGISTRY=true.

@xiaodaigh
Copy link
Owner

Seems like i need to wipie everything to test this out. Since it's still working for me

@jaakkor2
Copy link
Contributor

Renaming .julia/registries/General-folder temporarily should be enough to test it.

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