JuliaGaussianProcesses / Stheno.jl

Probabilistic Programming with Gaussian processes in Julia
Other
339 stars 26 forks source link

cumulsizes not defined #107

Closed andferrari closed 4 years ago

andferrari commented 4 years ago

I have add Stheno v0.3.2 in Julia 1.4.1 and typing using Stheno produces the following error:

julia> using Stheno
[ Info: Precompiling Stheno [8188c328-b5d6-583d-959b-9690869a5511]
ERROR: LoadError: LoadError: UndefVarError: cumulsizes not defined
Stacktrace:
 [1] include(::Module, ::String) at ./Base.jl:377
 [2] include(::String) at /Users/ferrari/.julia/packages/Stheno/m0I3t/src/Stheno.jl:1
 [3] top-level scope at /Users/ferrari/.julia/packages/Stheno/m0I3t/src/Stheno.jl:32
 [4] include(::Module, ::String) at ./Base.jl:377
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:331 [inlined]
 [7] eval(::Expr) at ./client.jl:449
 [8] top-level scope at ./none:3
in expression starting at /Users/ferrari/.julia/packages/Stheno/m0I3t/src/util/block_arrays/dense.jl:4
in expression starting at /Users/ferrari/.julia/packages/Stheno/m0I3t/src/Stheno.jl:32
ERROR: Failed to precompile Stheno [8188c328-b5d6-583d-959b-9690869a5511] to /Users/ferrari/.julia/compiled/v1.4/Stheno/sVmvC_9B77L.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
willtebbutt commented 4 years ago

Hi @andferrari - thanks for reporting the issue. Is there a particular reason that you need v0.3.2? The current release is 0.6.3.

andferrari commented 4 years ago

No reason! I just used ] add Stheno. Thanks for your help. I will try an ] update

andferrari commented 4 years ago

After the ] update I still have the same version of Stheno and the same error.

willtebbutt commented 4 years ago

Interesting. It sounds like you've got some other dependency in your environment that's preventing you from upgrading Stheno. Could you provide the output of ] add Stheno@0.6.3? I would be interested to know what's preventing the upgrade.

edit: and the output of ] st also

andferrari commented 4 years ago

] add Stheno@0.6.3 updated Stheno but downgraded other packages!

(@v1.4) pkg> add Stheno@0.6.3
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed RecipesBase ─ v0.8.0
  Installed Stheno ────── v0.6.3
  Installed ColorTypes ── v0.9.1
  Installed BlockArrays ─ v0.10.2
  Installed Plots ─────── v0.29.9
  Installed PlotUtils ─── v0.6.5
  Installed PlotThemes ── v1.0.3
  Installed Colors ────── v0.11.2
  Installed GR ────────── v0.48.0
   Updating `~/.julia/environments/v1.4/Project.toml`
  [91a5bcdd] ↓ Plots v1.2.4 ⇒ v0.29.9
  [8188c328] ↑ Stheno v0.3.2 ⇒ v0.6.3
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [8e7c35d0] ↓ BlockArrays v0.12.5 ⇒ v0.10.2
  [35d6a980] - ColorSchemes v3.9.0
  [3da002f7] ↓ ColorTypes v0.10.3 ⇒ v0.9.1
  [5ae59095] ↓ Colors v0.12.0 ⇒ v0.11.2
  [28b8d3ca] ↓ GR v0.49.1 ⇒ v0.48.0
  [ccf2f8ad] ↓ PlotThemes v2.0.0 ⇒ v1.0.3
  [995b91a9] ↓ PlotUtils v1.0.2 ⇒ v0.6.5
  [91a5bcdd] ↓ Plots v1.2.4 ⇒ v0.29.9
  [3cdcf5f2] ↓ RecipesBase v1.0.1 ⇒ v0.8.0
  [8188c328] ↑ Stheno v0.3.2 ⇒ v0.6.3
   Building GR ───→ `~/.julia/packages/GR/yMV3y/deps/build.log`
   Building Plots → `~/.julia/packages/Plots/cc8wh/deps/build.log`
willtebbutt commented 4 years ago

Oh, interesting. I'll remove the restriction on plots -- I wasn't aware that 1.0 had been published! Hopefully that will resolve this problem.

edit: that doesn't appear to be the problem as Stheno doesn't explicitly depend on Plots. Will continue to investigate anyway.

edit 2: looks like the culprit is BlockArrays (of all things). Will resolve shortly!

edit 3: the BlockArrays API has changed a bit since I last updated things. Have opened an issue here to discuss a problem that I'm having (that almost certainly has a really straightforward solution) and then I'll be able to relax the restrictions on the version of BlockArrays.

willtebbutt commented 4 years ago

@andferrari I've tagged Stheno 0.6.4 -- could you try adding it to your environment, hopefully it won't downgrade any of your dependencies.

andferrari commented 4 years ago

Everything works now! Thank you