Julia v1.7.0-beta3 installs old Turing version

] add Turing in the REPL of a fresh Julia v1.7.0-beta3 install on Windows with an emtpy .julia folder installs Turing v0.15.1 instead of the most recent v0.17.0.

] add Turing@v0.17.0 results in an unsatisfiable requirement error for the package Libtask, due to Libtask_jll:

(@v1.7) pkg> add Turing@v0.17.0
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Libtask [6f1fad26]:
 Libtask [6f1fad26] log:
 ├─possible versions are: 0.1.1-0.5.3 or uninstalled
 ├─restricted by compatibility requirements with Turing [fce5fe82] to versions: [0.4.0-0.4.2, 0.5.3]
 │ └─Turing [fce5fe82] log:
 │   ├─possible versions are: 0.5.0-0.17.0 or uninstalled
 │   └─restricted to versions 0.17.0 by an explicit requirement, leaving only versions 0.17.0
 ├─restricted by compatibility requirements with AdvancedPS [576499cb] to versions: 0.5.3
 │ └─AdvancedPS [576499cb] log:
 │   ├─possible versions are: 0.1.0-0.2.4 or uninstalled
 │   └─restricted by compatibility requirements with Turing [fce5fe82] to versions: 0.2.4
 │     └─Turing [fce5fe82] log: see above
 └─restricted by compatibility requirements with Libtask_jll [3ae2931a] to versions: 0.1.1-0.4.2 or uninstalled — no versions left
   └─Libtask_jll [3ae2931a] log:
     ├─possible versions are: 0.3.0-0.5.1 or uninstalled
     └─restricted by julia compatibility requirements to versions: [0.3.0-0.3.2, 0.5.0-0.5.1] or uninstalled

Any suggestions on how to fix or work around this?

Looks like you need to remove AdvancedPS as it restricts compat with LibTask?

Incidentally it’s not recommended to install packages in the default environment, it’s better to have project specific environments for whatever concrete thing you’re working on, both to have reproducibility and minimise the likelihood of compat issues like the one you’re seeing here.

1 Like

This also happens in a clean environment. The reason for this is completely within the dependencies of Turing:

  • Turing 0.17.0 requires AdvancedPS 0.2.4 (the latest version)
  • AdvancedPS 0.2.4 requires Libtask 0.5.3 (the latest version).
  • Libtask 0.5.3 requires Libtask_jll 0.4, which requires Julia 1.6 (not older, not newer).
2 Likes

you need to add both Turing and Libtask with #master

2 Likes

Thanks for the explanations and suggestions!

Adding Libtask#master and Turing#master works without conflicts, but test Libtask throws an error - I filed an issue here.