Package version conflict with MeshCatMechanisms

After my daily ]up today, I am suddenly getting a number of: ERROR: Unsatisfiable requirements detected for package messages.

This started with MeshCatMechanisms and RigidBodySim, so I removed them along with MeshCat and MeshCatGoemetries, which seemed to be implicated. Typed resolve and then ]up and it’s OK. Reinstalling gave the original problem (pasted below).

Reading similar posts led me to suppose that the Registry might be corrupt, so I removed the ~/.julia/registries/General folder followed by an ]up but no improvement except that now TexExtensions added itself to the list of unsatisfiable requirements. This was caused by SIUnits. Removed that package and any other packages (including the above) that might be in anyway related. Did resolve (see below), up – everything is fine, tried to reinstall said packages but still the same.

All I can think of now is deleting everything related to Julia, including the .julia directory. But before I do, has anyone had similar problems today? Or is this just me?

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
(v1.1) pkg> resolve
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.1/Manifest.toml`
(v1.1) pkg> add MeshCat
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
  [283c5d60] + MeshCat v0.6.0
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [283c5d60] + MeshCat v0.6.0
  [99f44e22] + MsgPack v0.2.0

(v1.1) pkg> add MeshCatMechanisms
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MeshCatMechanisms [6ad125db]:
 MeshCatMechanisms [6ad125db] log:
 ├─possible versions are: [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1, 0.3.0] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1, 0.3.0]
 ├─restricted by compatibility requirements with MechanismGeometries [931e9471] to versions: [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1] or uninstalled, leaving only versions: [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1]
 │ └─MechanismGeometries [931e9471] log:
 │   ├─possible versions are: [0.0.1-0.0.4, 0.1.0-0.1.2, 0.2.0] or uninstalled
 │   └─restricted to versions 0.1.2 by an explicit requirement, leaving only versions 0.1.2
 └─restricted by compatibility requirements with MeshCat [283c5d60] to versions: 0.3.0 or uninstalled — no versions left
   └─MeshCat [283c5d60] log:
     ├─possible versions are: [0.0.1-0.0.3, 0.1.0-0.1.2, 0.2.0-0.2.3, 0.3.0, 0.4.0, 0.5.0, 0.6.0] or uninstalled
     └─restricted to versions 0.6.0 by an explicit requirement, leaving only versions 0.6.0
add RigidBodySim
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MeshCatMechanisms [6ad125db]:
 MeshCatMechanisms [6ad125db] log:
 ├─possible versions are: [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1, 0.3.0] or uninstalled
 ├─restricted by compatibility requirements with MechanismGeometries [931e9471] to versions: [0.0.1-0.0.6, 0.1.0-0.1.1, 0.2.0-0.2.1] or uninstalled
 │ └─MechanismGeometries [931e9471] log:
 │   ├─possible versions are: [0.0.1-0.0.4, 0.1.0-0.1.2, 0.2.0] or uninstalled
 │   └─restricted to versions 0.1.2 by an explicit requirement, leaving only versions 0.1.2
 ├─restricted by compatibility requirements with MeshCat [283c5d60] to versions: 0.3.0 or uninstalled, leaving only versions: uninstalled
 │ └─MeshCat [283c5d60] log:
 │   ├─possible versions are: [0.0.1-0.0.3, 0.1.0-0.1.2, 0.2.0-0.2.3, 0.3.0, 0.4.0, 0.5.0, 0.6.0] or uninstalled
 │   └─restricted to versions 0.6.0 by an explicit requirement, leaving only versions 0.6.0
 └─restricted by compatibility requirements with RigidBodySim [e61f16d8] to versions: [0.1.1, 0.2.0-0.2.1, 0.3.0] — no versions left
   └─RigidBodySim [e61f16d8] log:
     ├─possible versions are: [0.0.1, 0.1.0, 0.2.0, 0.3.0, 1.0.0, 1.1.0] or uninstalled
     ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1, 0.1.0, 0.2.0, 0.3.0, 1.0.0, 1.1.0]
     └─restricted by julia compatibility requirements to versions: [0.3.0, 1.0.0, 1.1.0] or uninstalled, leaving only versions: [0.3.0, 1.0.0, 1.1.0]

I was just able to add MeshCat successfully. What else do you have in your environment?

MeshCat is no problem for me either – it’s MeshCatMechanisms that doesn’t install.

I have a huge amount in my environment!! I’ll try doing gc to see what happens …

Only 444 packages deleted!!

   Deleted 444 package installations (4.106 GiB)

(v1.1) pkg> resolve
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.1/Manifest.toml`
 [no changes]

(v1.1) pkg> add MeshCatMechanisms
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MeshCatMechanisms [6ad125db]:

This is what I have now…

(v1.1) pkg> st
    Status `~/.julia/environments/v1.1/Project.toml`
  [b6462baa] ApcsMessageTypes v0.1.0 [`../../../Documents/Julia/APCS/Telemetry/ApcsMessageTypes.jl`]
  [c52e3926] Atom v0.8.1
  [6e4b80f9] BenchmarkTools v0.4.2
  [c938a46a] Builder v0.1.0 [`../../../Documents/Julia/APCS/TARM/Builder.jl`]
  [3895d2a7] CUDAapi v0.6.2
  [34f1f09b] ClusterManagers v0.3.2
  [3da002f7] ColorTypes v0.7.5
  [34da2185] Compat v1.4.0 ⚲
  [a81c6b42] Compose v0.7.3
  [150eb455] CoordinateTransformations v0.5.0
  [a8cc5b0e] Crayons v3.0.0
  [1f15a43c] CxxWrap v0.8.1
  [a93c6f00] DataFrames v0.17.1
  [1313f7d8] DataFramesMeta v0.4.1
  [9a8bc11e] DataStreams v0.4.1
  [459566f4] DiffEqCallbacks v2.5.2
  [aae7a2af] DiffEqFlux v0.2.0
  [0c46a032] DifferentialEquations v6.3.0
  [31c24e10] Distributions v0.17.0
  [ffbed154] DocStringExtensions v0.7.0
  [e30172f5] Documenter v0.21.5
  [61744808] DynamicalSystems v1.2.0
  [587475ba] Flux v0.7.3
  [f6369f11] ForwardDiff v0.10.3
  [de31a74c] FunctionalCollections v0.5.0
  [c91e804a] Gadfly v1.0.1
  [4d00f742] GeometryTypes v0.7.3
  [4c0ca9eb] Gtk v0.16.5
  [7073ff75] IJulia v1.18.0
  [6218d12a] ImageMagick v0.7.1
  [d3863d7c] InteractBase v0.9.1
  [a98d9a8b] Interpolations v0.11.2
  [682c06a0] JSON v0.20.0
  [e5e0dc1b] Juno v0.6.0
  [1902f260] Knet v1.2.1
  [0ea44823] LCMCore v0.5.4
  [fc18253b] LazyJSON v0.1.1
  [194296ae] LibPQ v0.7.0
  [9c8b4983] LightXML v0.8.0
  [39f5be34] LoopThrottle v0.0.3
  [ee78f7c6] Makie v0.9.3 #master (https://github.com/JuliaPlots/Makie.jl.git)
  [b8f27783] MathOptInterface v0.8.4
  [eff96d63] Measurements v2.0.0
  [931e9471] MechanismGeometries v0.1.2
  [283c5d60] MeshCat v0.6.0
  [961ee093] ModelingToolkit v0.1.0
  [a975b10e] Mux v0.6.0
  [0db19996] NBInclude v2.1.0
  [ab2f91bb] OSQP v0.5.1
  [510215fc] Observables v0.2.3
  [bac558e1] OrderedCollections v1.0.2
  [1dea7af3] OrdinaryDiffEq v5.4.0
  [65888b18] ParameterizedFunctions v4.1.1
  [41fac6d6] Parametron v0.8.0
  [91a5bcdd] Plots v0.23.2
  [438e738f] PyCall v1.90.0
  [d330b81b] PyPlot v2.8.0
  [94ee1d12] Quaternions v0.3.1
  [6f49c342] RCall v0.13.2
  [ce6b1742] RDatasets v0.6.1
  [295af30f] Revise v2.0.0
  [366cf18f] RigidBodyDynamics v1.4.0
  [82daab19] RigidBodyTreeInspector v0.5.0
  [22415677] RobotOS v0.7.0
  [6038ab10] Rotations v0.11.1
  [9dd7a2f8] SeriesAccelerators v0.2.0
  [6303bc30] Signals v1.1.0
  [90137ffa] StaticArrays v0.10.3
  [24249f21] SymPy v0.9.0
  [dc548174] TerminalMenus v0.1.0
  [94a5cd58] TypeSortedCollections v1.0.0
  [c2297ded] ZMQ v1.0.0
  [44cfe95a] Pkg 
  [9a3f8284] Random 

MeshCat and MeshCatMechanisms both install just fine. It seems like something else in your environment has conflicting version requirements with one of them. The current version resolver is unfortunately not very helpful with telling you what the problem is. I would try getting rid of packages that you don’t need.

OK, will do, many thanks!

Your MechanismGeometries reports that it is restricted to version 0.1.2, which is too old for the latest MeshCatMechanisms. Can you try pkg> free MechanismGeometries ?

Probably would have worked but in the mean time I took the more draconian action of deleting .julia/.. and everything is fine except for my own packages! :slight_smile: Problem now gone away!

Thank you.

Edit: Obviously reinstalling everything I need, which actually is a lot!