Error: Unsatisfiable requirements detected for package

I am getting an error while adding packages to the julia:

Error

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.

The following question is also posted on stackoverflow : "Unsatisfiable requirements detected for the package" in Julia - Stack Overflow

Please suggest a solution to this issue.
Thanks in advance!

Perhaps (probably) those packages is not shipped with JuliaPro.

I don’t know if this works, but you could try to add the General package registry:

pkg> registry add https://github.com/JuliaRegistries/General

which should contain those packages.

3 Likes

@fredrikekre Thanks for the suggestion, apparently this didn’t resolve the issue.

However, I manage to resolve the issue by deleting the folder registry/General folder and then restart julia. This made julia to rebuild all the packages and now i can use it normally.

Where is this registery/General folder?

You may try this to delete and rebuild the registry:

(@v1.5) pkg> registry rm General
  Removing registry `General` from ~/.julia/registries/General

(@v1.5) pkg> registry add https://github.com/JuliaRegistries/General
   Cloning registry from "https://github.com/JuliaRegistries/General"
     Added registry `General` to `~/.julia/registries/General`

(@v1.5) pkg> registry up General
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General`

However, if you just want to access the folder then you may try to look for your .julia folder in windows.
Your path should look something like the following example:
C:\Users\User\.julia\registries\General

3 Likes