# Unsatisfiable requirement to uninstalled?

**URL:** https://discourse.julialang.org/t/unsatisfiable-requirement-to-uninstalled/83767
**Category:** General Usage
**Tags:** package
**Created:** [July 5, 2022, 9:19am UTC](https://discourse.julialang.org/t/unsatisfiable-requirement-to-uninstalled/83767 "2022-07-05T09:19:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)
#### Post date: [July 5, 2022, 9:19am UTC](https://discourse.julialang.org/t/unsatisfiable-requirement-to-uninstalled/83767/1 "2022-07-05T09:19:12Z")

</div>

Hello,

I have this weird error when trying to resolve the manifest of a main package (ReinforcementLearning) that I `dev`ed.

```julia
(ReinforcementLearning) pkg> resolve
ERROR: Unsatisfiable requirements detected for package LineSearches [d3d80556]:
 LineSearches [d3d80556] log:
 ├─possible versions are: 7.0.0-7.1.1 or uninstalled
 ├─restricted by compatibility requirements with Optim [429524aa] to versions: 7.0.0-7.1.1
 │ └─Optim [429524aa] log:
 │ ├─possible versions are: 0.15.3-1.7.0 or uninstalled
 │ ├─restricted to versions * by ReinforcementLearningZoo [d607f57d], leaving only versions 0.15.3-1.7.0
 │ │ └─ReinforcementLearningZoo [d607f57d] log:
 │ │ ├─possible versions are: 0.6.0 or uninstalled
 │ │ ├─restricted to versions 0.6 by ReinforcementLearning [158674fc], leaving only versions 0.6.0
 │ │ │ └─ReinforcementLearning [158674fc] log:
 │ │ │ ├─possible versions are: 0.11.0 or uninstalled
 │ │ │ └─ReinforcementLearning [158674fc] is fixed to version 0.11.0
 │ │ └─ReinforcementLearningZoo [d607f57d] is fixed to version 0.6.0
 │ ├─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: [0.15.3, 0.20.5-1.7.0] or uninstalled, leaving only versions: [0.15.3, 0.20.5-1.7.0]
 │ │ └─StatsBase [2913bbd2] log:
 │ │ ├─possible versions are: 0.24.0-0.33.18 or uninstalled
 │ │ ├─restricted to versions * by ReinforcementLearningEnvironments [25e41dd2], leaving only versions 0.24.0-0.33.18
 │ │ │ └─ReinforcementLearningEnvironments [25e41dd2] log:
 │ │ │ ├─possible versions are: 0.7.0 or uninstalled
 │ │ │ ├─restricted to versions 0.7 by ReinforcementLearning [158674fc], leaving only versions 0.7.0
 │ │ │ │ └─ReinforcementLearning [158674fc] log: see above
 │ │ │ └─ReinforcementLearningEnvironments [25e41dd2] is fixed to version 0.7.0
 │ │ ├─restricted to versions 0.32-0.33 by ReinforcementLearningCore [de1b191a], leaving only versions 0.32.0-0.33.18
 │ │ │ └─ReinforcementLearningCore [de1b191a] log:
 │ │ │ ├─possible versions are: 0.9.0 or uninstalled
 │ │ │ ├─restricted to versions 0.9 by ReinforcementLearning [158674fc], leaving only versions 0.9.0
 │ │ │ │ └─ReinforcementLearning [158674fc] log: see above
 │ │ │ └─ReinforcementLearningCore [de1b191a] is fixed to version 0.9.0
 │ │ ├─restricted to versions 0.33 by ReinforcementLearningZoo [d607f57d], leaving only versions 0.33.0-0.33.18
 │ │ │ └─ReinforcementLearningZoo [d607f57d] log: see above
 │ │ └─restricted to versions 0.33.18 by an explicit requirement, leaving only versions 0.33.18
 │ ├─restricted by compatibility requirements with Calculus [49dc2e85] to versions: 0.19.2-1.7.0 or uninstalled, leaving only versions: 0.20.5-1.7.0
 │ │ └─Calculus [49dc2e85] log:
 │ │ ├─possible versions are: 0.4.1-0.5.1 or uninstalled
 │ │ └─restricted to versions 0.5.1 by an explicit requirement, leaving only versions 0.5.1
 │ └─restricted by compatibility requirements with NaNMath [77ba4419] to versions: 1.6.2-1.7.0 or uninstalled, leaving only versions: 1.6.2-1.7.0
 │ └─NaNMath [77ba4419] log:
 │ ├─possible versions are: 0.3.2-1.0.0 or uninstalled
 │ └─restricted to versions 1.0.0 by an explicit requirement, leaving only versions 1.0.0
 └─restricted by compatibility requirements with NaNMath [77ba4419] to versions: uninstalled — no versions left
   └─NaNMath [77ba4419] log: see above

```

This is not very convenient without the coloring but basically its seems to boil down to `Optim` needs `NaNMath` and `LineSearches`, but `NaNMath` needs `LineSearches` uninstalled (???). This can’t be right.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 5, 2022, 9:35am UTC](https://discourse.julialang.org/t/unsatisfiable-requirement-to-uninstalled/83767/2 "2022-07-05T09:35:08Z")

</div>

The problem is that `LineSearches` does not support `NaNMath@1`, and something in your environment requires `NaNMath@1`.

---

<div class="post-metadata">

### Author: ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)
#### Post date: [July 5, 2022, 9:51am UTC](https://discourse.julialang.org/t/unsatisfiable-requirement-to-uninstalled/83767/3 "2022-07-05T09:51:06Z")

</div>

Thank you. I did `up NaNMath` to see what would happen and it did `[77ba4419] ↓ NaNMath v1.0.0 ⇒ v0.3.7`, among other things. Now the primary package loads correctly.
