# Unsatisfiable requirements error when adding Clarabel.jl thru package manager

**URL:** <https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431>\
**Category:** Optimization (Mathematical)\
**Tags:** question, package, error\
**Created:** [April 2, 2024, 5:31pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431 "2024-04-02T17:31:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![charshaw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/charshaw/32/10361_2.png) [@charshaw](https://discourse.julialang.org/u/charshaw)\
**Post date:** [April 2, 2024, 5:31pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431/1 "2024-04-02T17:31:06Z")

</div>

I went to add Clarabel.jl thru the package manager and received the following error message

```julia
ERROR: Unsatisfiable requirements detected for package Clarabel [61c947e1]:
 Clarabel [61c947e1] log:
 ├─possible versions are: [0.1.0-0.1.2, 0.2.0, 0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.1, 0.6.0, 0.7.0-0.7.1] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.1.0-0.1.2, 0.2.0, 0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.1, 0.6.0, 0.7.0-0.7.1]
 └─restricted by compatibility requirements with MathOptInterface [b8f27783] to versions: uninstalled — no versions left
   └─MathOptInterface [b8f27783] log:
     ├─possible versions are: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0-1.6.1, 1.7.0, 1.8.0-1.8.2, 1.9.0, 1.10.0, 1.11.0-1.11.5, 1.12.0, 1.13.0-1.13.2, 1.14.0-1.14.1, 1.15.0-1.15.1, 1.16.0, 1.17.0-1.17.1, 1.18.0, 1.19.0, 1.20.0-1.20.1, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0-1.25.3, 1.26.0, 1.27.0-1.27.1] or uninstalled
     ├─restricted to versions * by an explicit requirement, leaving only versions [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0-1.6.1, 1.7.0, 1.8.0-1.8.2, 1.9.0, 1.10.0, 1.11.0-1.11.5, 1.12.0, 1.13.0-1.13.2, 1.14.0-1.14.1, 1.15.0-1.15.1, 1.16.0, 1.17.0-1.17.1, 1.18.0, 1.19.0, 1.20.0-1.20.1, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0-1.25.3, 1.26.0, 1.27.0-1.27.1]
     ├─restricted by compatibility requirements with LinearAlgebra [37e2e46d] to versions: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0-1.6.1, 1.7.0, 1.8.0-1.8.2, 1.9.0, 1.10.0, 1.11.0-1.11.5, 1.12.0, 1.13.0-1.13.2, 1.14.0-1.14.1, 1.15.0-1.15.1, 1.16.0, 1.17.0-1.17.1, 1.18.0, 1.19.0, 1.20.0-1.20.1, 1.21.0] or uninstalled, leaving only versions: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0-1.6.1, 1.7.0, 1.8.0-1.8.2, 1.9.0, 1.10.0, 1.11.0-1.11.5, 1.12.0, 1.13.0-1.13.2, 1.14.0-1.14.1, 1.15.0-1.15.1, 1.16.0, 1.17.0-1.17.1, 1.18.0, 1.19.0, 1.20.0-1.20.1, 1.21.0]
     │ └─LinearAlgebra [37e2e46d] log:
     │ ├─possible versions are: 1.5.3 or uninstalled
     │ └─restricted to versions * by an explicit requirement, leaving only versions 1.5.3
     ├─restricted by julia compatibility requirements to versions: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9] or uninstalled, leaving only versions: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9]
     └─restricted by compatibility requirements with MosekTools [1ec41992] to versions: [0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0-1.6.1, 1.7.0, 1.8.0-1.8.2, 1.9.0, 1.10.0, 1.11.0-1.11.5, 1.12.0, 1.13.0-1.13.2, 1.14.0-1.14.1, 1.15.0-1.15.1, 1.16.0, 1.17.0-1.17.1, 1.18.0, 1.19.0, 1.20.0-1.20.1, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0-1.25.3, 1.26.0, 1.27.0-1.27.1], leaving only versions: [0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9]
       └─MosekTools [1ec41992] log:
         ├─possible versions are: [0.6.0, 0.7.0-0.7.7, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0, 0.12.0-0.12.1, 0.13.0-0.13.4, 0.14.0, 0.15.0-0.15.1] or uninstalled
         ├─restricted to versions * by an explicit requirement, leaving only versions [0.6.0, 0.7.0-0.7.7, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0, 0.12.0-0.12.1, 0.13.0-0.13.4, 0.14.0, 0.15.0-0.15.1]
         ├─restricted by julia compatibility requirements to versions: [0.6.0, 0.7.0-0.7.7, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0] or uninstalled, leaving only versions: [0.6.0, 0.7.0-0.7.7, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0]
         └─restricted by compatibility requirements with MathOptInterface [b8f27783] to versions: [0.6.0, 0.7.0-0.7.6, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0] or uninstalled, leaving only versions: [0.6.0, 0.7.0-0.7.6, 0.8.0, 0.9.0-0.9.4, 0.10.0, 0.11.0]
           └─MathOptInterface [b8f27783] log: see above

```

I understand that there is some satisfiability issues when installing Clarabel.jl. I’m slightly unsure how to read the error message, but from what I can tell the compatibility requirements are coming from LinearAlgebra.jl, MosekTools.jl, and MathOptInterface.jl. This is surprising to me since I would assume these packages are frequently used together. I updated all of the above packages.

I suspect the error is an issue on my end and not with Clarabel.jl, but I’m not entirely sure. Any advice on how to fix this issue would be very helpful!

---

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [April 2, 2024, 5:42pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431/2 "2024-04-02T17:42:35Z")

</div>

Which version of Julia are you using? Did you try another (recent) version of Julia?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [April 2, 2024, 5:45pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431/3 "2024-04-02T17:45:55Z")

</div>

Hi Christopher,

Great to see some causal inference folks in the community! The error message is indeed curious, I don’t immediately see what’s going wrong here and was able to successfully add all the packages in a new environment:

```julia
(jl_axSkKE) pkg> st
Status `/tmp/jl_axSkKE/Project.toml`
  [61c947e1] Clarabel v0.7.1
  [b8f27783] MathOptInterface v1.27.1
  [1ec41992] MosekTools v0.15.1
  [37e2e46d] LinearAlgebra

```

The mention of a `LinearAlgebra` version makes me think that you might be using an unreleased Julia version?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [April 2, 2024, 5:50pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431/4 "2024-04-02T17:50:30Z")

</div>

I assume you are using Julia v1.5.3.

The current minimum version supported by JuMP is 1.6. You are strongly encouraged to use v1.10

---

<div class="post-metadata">

**Author:** ![charshaw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/charshaw/32/10361_2.png) [@charshaw](https://discourse.julialang.org/u/charshaw)\
**Post date:** [April 2, 2024, 6:29pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431/5 "2024-04-02T18:29:08Z")

</div>

Thanks all for your help! You’re totally right - I was using Julia v1.5.3. Once I update to the most recent version, these errors go away.

Sorry for the “D’oh!” moment, and I appreciate the help 🙂
