How to see list of available Package Versions? (AKA how to downgrade because Turing crashes?)

I installed the latest Turing and now I can’t “using Turing” because:


julia> using Turing
ERROR: InitError: UndefVarError: Params not defined
Stacktrace:
  [1] top-level scope
    @ none:1
  [2] eval
    @ ./boot.jl:373 [inlined]
  [3] define_typeinf_code2()
    @ IRTools.Inner ~/.julia/packages/IRTools/BpoqK/src/reflection/reflection.jl:21
  [4] __init__()
    @ IRTools.Inner ~/.julia/packages/IRTools/BpoqK/src/IRTools.jl:37
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768

This was working fine yesterday so I’d like to downgrade, but how do I find out what downgrade versions there are?

(BTW: I just guessed and did ] add Turing@0.8.1 and that now works, but I still want to know how to find out what versions are available).

so there isn’t any Pkg command that lets you list em?

that’s from 18 months ago…

yeah, holy cow. Now I will have to see what the hell is holding it back!

(@v1.7) pkg> add Turing@0.18.0
    Updating registry at `~/.julia/registries/General.toml`
   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.18.0 or uninstalled
 │   └─restricted to versions 0.18.0 by an explicit requirement, leaving only versions 0.18.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

Seems like because I"m running Julia 1.7.0-beta3 that Libtask can’t hit 0.5.3 and hence Turing is held WAY back.

Installed Libtask#master and it updated Turing to 0.18.0 so I guess problem solved!

BUT: it still seems like it’d be good to have a Pkg command to list available versions?

You probably don’t want to set any compat for your environment but you can use PackageCompatUI to get a list of all releases and their registration dates:

(@v1.6) pkg> add PackageCompatUI
(@v1.6) pkg> activate --temp
(jl_k7HOZz) pkg> add Turing
julia> using PackageCompatUI
julia> compat_ui()
Save and quit: q, Help: ?
 > julia                                   
   Turing                                  

Move the cursor to Turing and hit return or right arrow:

Turing: 
 > [ ] 0.5.0               2018-09-19
   [ ] 0.5.1               2018-10-12
   [ ] 0.6.0               2018-12-10
   [ ] 0.6.1               2018-12-10
   [ ] 0.6.2               2018-12-14
   [ ] 0.6.4               2018-12-29
   [ ] 0.6.5               2019-01-19
   [ ] 0.6.6               2019-01-24
   [ ] 0.6.7               2019-02-04
   [ ] 0.6.8               2019-02-07
   [ ] 0.6.9               2019-02-18
   [ ] 0.6.11              2019-03-05
   [ ] 0.6.12              2019-03-12
   [ ] 0.6.13              2019-03-20
   [ ] 0.6.14              2019-03-29
   [ ] 0.6.15              2019-04-17
   [ ] 0.6.17              2019-04-25
   [ ] 0.6.18              2019-07-06
   [ ] 0.6.19              2019-07-24
v  [ ] 0.6.21              2019-07-24

Navigate with up and down arrows to see the release history. Hit ‘q’ to leave without setting any compat.

4 Likes