# Unsatisfiable Requirements when installing PlotlyJS

**URL:** <https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526>\
**Category:** New to Julia\
**Created:** [October 29, 2023, 3:26am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526 "2023-10-29T03:26:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobmccrory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bobmccrory/32/5137_2.png) [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Post date:** [October 29, 2023, 3:26am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/1 "2023-10-29T03:26:19Z")

</div>

When I try to add the latest version of PlotlyJS, i get the error below:

(@v1.9) pkg\> add PlotlyJS@v2.20.0  
Resolving package versions…  
ERROR: Unsatisfiable requirements detected for package PlotlyJS [f0f68f2c]:  
PlotlyJS [f0f68f2c] log:  
├─possible versions are: 0.11.0-0.18.11 or uninstalled  
└─restricted to versions 2.20.0 by an explicit requirement — no versions left

This is my latest status:

Status `C:\Users\bobmc\.julia\environments\v1.9\Project.toml`  
[13f3f980] CairoMakie v0.10.11  
[e9467ef8] GLMakie v0.8.11  
[7073ff75] IJulia v1.24.2  
[f0f68f2c] PlotlyJS v0.18.11  
[91a5bcdd] Plots v1.39.0

I’m running up to date Windows 11. Can anyone tell me what requirements are unsatisfied?

Thanks for checking this out.

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [October 29, 2023, 4:42am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/2 "2023-10-29T04:42:37Z")

</div>

> [@bobmccrory](#):
>
> add PlotlyJS@v2.20.0

> [@bobmccrory](#):
>
> PlotlyJS [f0f68f2c] log:  
> ├─possible versions are: 0.11.0-0.18.11 or uninstalled  
> └─restricted to versions 2.20.0 by an explicit requirement — no versions left

plotly.js has a latest version of 2.27.0, and that is probably what you intended to work relative to. The wrapper PlotlyJS.jl has a latest version of 0.18.11, which does not match the underlying plotly.js version. I don’t know how to relate the versions of a Julia wrapper and the original library, or if there even is a convenient way. Most I can tell from looking at the PlotlyJS.jl repository is that it’s using plotly.js v2 at the moment, and `Pkg.build` targets the latest release of plotly.js, which isn’t what you want.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 29, 2023, 9:18am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/3 "2023-10-29T09:18:13Z")

</div>

Why did you try to install a specific version of PlotlyJS in the first place? If you do

```julia
using Pkg
Pkg.update()

```

you will normally get the latest version of your packages, and to check that if you do

```julia
]
status

```

in package manager mode it will indicate if any package has not the newest version. Only if you see that a package is hold back there, then it is worth to start any investigation.

If you see the text:

```julia
Info Packages marked with ⌃ and ⌅ have new versions available, but those 
with ⌅ are restricted by compatibility constraints from upgrading. 
To see why use `status --outdated`

```

then you can investigate further.

---

<div class="post-metadata">

**Author:** ![VivMendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vivmendes/32/16477_2.png) [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Post date:** [October 29, 2023, 10:10am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/4 "2023-10-29T10:10:30Z")

</div>

You are trying to install something that does not exist. As @Benny has mentioned, the latest version of PlotlyJS.jl is v0.18.11, released two weeks ago. Do not confuse plotly.js (plotly for Javascript, with the latest version 2.27.0) with PlotlyJS.jl (Plotly’s wrapper for Julia).

---

<div class="post-metadata">

**Author:** ![bobmccrory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bobmccrory/32/5137_2.png) [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Post date:** [October 29, 2023, 4:56pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/5 "2023-10-29T16:56:02Z")

</div>

Vivaldo, thank you very much for your help. I hadn’t realized the difference.

Thanks again.

---

<div class="post-metadata">

**Author:** ![bobmccrory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bobmccrory/32/5137_2.png) [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Post date:** [October 29, 2023, 5:01pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526/6 "2023-10-29T17:01:44Z")

</div>

Thanks to everyone who took the time to respond. Haven’t done this before, and it makes me very happy to realize there are people out there to help me.
