Reputation: 2005
I am getting an error while adding packages to the julia:
DataFrame
(@v1.5) pkg> add DataFrames
Updating registry at `C:\Users\.julia\registries\JuliaComputingRegistry`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DataFramesMeta [1313f7d8]:
DataFramesMeta [1313f7d8] log:
├─DataFramesMeta [1313f7d8] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
CUDA
(@v1.5) pkg> add CUDA
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CUDA [052768ef]:
CUDA [052768ef] log:
├─CUDA [052768ef] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
This happens every time I try to add any package to julia. I have tried reinstalling the julia but the issue still persist.
Please suggest a solution to this issue. I have also posted this issue on julia-discourse.
Thanks in advance.
Upvotes: 4
Views: 2726
Reputation: 2005
The issue is related to cloning of registry during update. Apparently, it is some kind of a bug.
To resolve this issue, you may delete the registry/General
folder and then restart Julia. This will make Julia to rebuild all the packages and then everything should run smoothly.
To delete the folder, one may either go to console and perform following operations:
(@v1.5) pkg> registry rm General
Removing registry `General` from ~/.julia/registries/General
or
Look for the folder .julia/registries/General
(tested in windows) and delete it manually. (Path will look something like this: C:\Users\User\.julia\registries\General
Thanks!!
Upvotes: 5