Julia compatibility requirement error

Hi,

We’re working on updating a dependency in one of our projects and got the following error.

ERROR: Unsatisfiable requirements detected for package DynamicPPL [366bfd00]:
 DynamicPPL [366bfd00] log:
 ├─possible versions are: 0.1.0-0.23.0 or uninstalled
 ├─restricted by compatibility requirements with Turing [fce5fe82] to versions: 0.23.0
 │ └─Turing [fce5fe82] log:
 │   ├─possible versions are: 0.5.0-0.26.0 or uninstalled
 │   └─restricted to versions 0.26 by CRRao [49d1be55], leaving only versions 0.26.0
 │     └─CRRao [49d1be55] log:
 │       ├─possible versions are: 0.1.0 or uninstalled
 │       └─CRRao [49d1be55] is fixed to version 0.1.0
 └─restricted by compatibility requirements with AbstractPPL [7a57a42e] to versions: 0.1.0-0.21.3 or uninstalled — no versions left
   └─AbstractPPL [7a57a42e] log:
     ├─possible versions are: 0.1.0-0.6.2 or uninstalled
     └─restricted by julia compatibility requirements to versions: 0.1.0-0.5.2 or uninstalled

We’re not sure why AbstractPPL gets restricted by julia compatibility requirements.

Our project.toml:

name = "CRRao"
uuid = "49d1be55-416f-4ec4-9ddf-53cbbcddc063"
authors = ["xKDR Forum, Sourish Das"]
version = "0.1.0"
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLSolversBase = "d41bc354-129a-5804-8e4c-c37616107c6c"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StatsAPI = "82ae8749-77ed-4fe6-ae5f-f523153014b0"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
[compat]
DataFrames = "1"
Distributions = "0.25"
Documenter = "0.27"
GLM = "1"
NLSolversBase = "7"
Optim = "1"
StatsAPI = "1"
StatsBase = "0.33"
StatsModels = "0.6"
Turing = "0.23.2, 0.24"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

Pull request

Hi and welcome.

IIUC the problem comes from the fact that AbstractPPL starting with v0.5.3 tightened their compat bounds to (https://github.com/TuringLang/AbstractPPL.jl/blob/0f289206b22da5feee03218c157afb28706ed8ec/Project.toml#L19)

julia = "~1.6.6, 1.7.3"

But in the repo of the PR you linked the CI is configured to run on Julia v1.7.2, cf. https://github.com/xKDR/CRRao.jl/blob/compathelper/new_version/2023-06-16-00-53-51-932-00744874042/.github/workflows/ci.yml. Hence you see this line

└─restricted by julia compatibility requirements to versions: 0.1.0-0.5.2 or uninstalled

So perhaps try bumping the Julia version in CI.

2 Likes