How resolve compatibility with InteractiveDynamics package?

I’m a new Julia programmer and want to use the InteractiveDynamics package. But when I try to add it, I get the following error report. How can I resolve this?

@v1.6) pkg> add InteractiveDynamics
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Colors [5ae59095]:
 Colors [5ae59095] log:
 ├─possible versions are: 0.9.0-0.12.8 or uninstalled
 ├─restricted to versions * by ComplexPortraits [17699382], leaving only versions 0.9.0-0.12.8
 │ └─ComplexPortraits [17699382] log:
 │   ├─possible versions are: 0.2.0 or uninstalled
 │   └─ComplexPortraits [17699382] is fixed to version 0.2.0
 ├─restricted by compatibility requirements with FreeTypeAbstraction [663a7486] to versions: 0.11.0-0.12.8
 │ └─FreeTypeAbstraction [663a7486] log:
 │   ├─possible versions are: 0.4.0-0.9.1 or uninstalled
 │   ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.4.0-0.9.1
 │   │ └─AbstractPlotting [537997a7] log:
 │   │   ├─possible versions are: 0.9.0-0.18.2 or uninstalled
 │   │   ├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.18.2
 │   │   └─restricted by compatibility requirements with InteractiveDynamics [ec714cd0] to versions: 0.15.0-0.18.2
 │   │     └─InteractiveDynamics [ec714cd0] log:
 │   │       ├─possible versions are: 0.13.0-0.14.6 or uninstalled
 │   │       └─restricted to versions * by an explicit requirement, leaving only versions 0.13.0-0.14.6
 │   └─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.8.0-0.9.1
 │     └─AbstractPlotting [537997a7] log: see above
 ├─restricted by compatibility requirements with ColorTypes [3da002f7] to versions: 0.9.6-0.11.2 or uninstalled, leaving only versions: 0.11.0-0.11.2
 │ └─ColorTypes [3da002f7] log:
 │   ├─possible versions are: 0.7.0-0.11.0 or uninstalled
 │   ├─restricted to versions * by ComplexPortraits [17699382], leaving only versions 0.7.0-0.11.0
 │   │ └─ComplexPortraits [17699382] log: see above
 │   ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.8.0-0.11.0
 │   │ └─AbstractPlotting [537997a7] log: see above
 │   └─restricted by compatibility requirements with QuartzImageIO [dca85d43] to versions: 0.7.0-0.9.1, leaving only versions: 0.8.0-0.9.1
 │     └─QuartzImageIO [dca85d43] log:
 │       ├─possible versions are: 0.5.0-0.7.4 or uninstalled
 │       ├─restricted by compatibility requirements with Luxor [ae8d54c2] to versions: 0.5.0-0.6.0
 │       │ └─Luxor [ae8d54c2] log:
 │       │   ├─possible versions are: 0.11.0-2.11.0 or uninstalled
 │       │   └─restricted to versions 1 by ThinkJulia [a7f2b756], leaving only versions 1.0.0-1.12.0
 │       │     └─ThinkJulia [a7f2b756] log:
 │       │       ├─possible versions are: 0.0.0 or uninstalled
 │       │       └─ThinkJulia [a7f2b756] is fixed to version 0.0.0
 │       └─restricted by compatibility requirements with FixedPointNumbers [53c48c17] to versions: 0.6.0-0.7.4 or uninstalled, leaving only versions: 0.6.0
 │         └─FixedPointNumbers [53c48c17] log:
 │           ├─possible versions are: 0.5.0-0.8.4 or uninstalled
 │           ├─restricted by compatibility requirements with Colors [5ae59095] to versions: 0.5.0-0.8.4
 │           │ └─Colors [5ae59095] log: see above
 │           ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.6.0-0.8.4
 │           │ └─AbstractPlotting [537997a7] log: see above
 │           └─restricted by compatibility requirements with QuartzImageIO [dca85d43] to versions: 0.5.0-0.7.1, leaving only versions: 0.6.0-0.7.1
 │             └─QuartzImageIO [dca85d43] log: see above
 └─restricted by compatibility requirements with PlotUtils [995b91a9] to versions: 0.12.0-0.12.8 — no versions left
   └─PlotUtils [995b91a9] log:
     ├─possible versions are: 0.5.0-1.0.10 or uninstalled
     ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.5.0-1.0.10
     │ └─AbstractPlotting [537997a7] log: see above
     └─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 1.0.0-1.0.10
       └─AbstractPlotting [537997a7] log: see above

See Should we have a package update PSA?

In short - don’t dump everything into the same environment, but work in project environments comprising only the limited set of packages you actually need.

2 Likes

So I tried the following in the REPL:

mkdir(“MyDynamics”)
cd("MyDynamics”)

(@v1.6) ] pkg> activate
(@v1.6) pkg> add InteractiveDynamics

And I get the same compatibility issue as before:

Updating registry at ~/.julia/registries/General
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package Colors [5ae59095]:
Colors [5ae59095] log:
├─possible versions are: 0.9.0-0.12.8 or uninstalled
├─restricted to versions * by ComplexPortraits [17699382], leaving only versions 0.9.0-0.12.8
│ └─ComplexPortraits [17699382] log:
│ ├─possible versions are: 0.2.0 or uninstalled
│ └─ComplexPortraits [17699382] is fixed to version 0.2.0
├─restricted by compatibility requirements with FreeTypeAbstraction [663a7486] to versions: 0.11.0-0.12.8
│ └─FreeTypeAbstraction [663a7486] log:
│ ├─possible versions are: 0.4.0-0.9.1 or uninstalled
│ ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.4.0-0.9.1
│ │ └─AbstractPlotting [537997a7] log:
│ │ ├─possible versions are: 0.9.0-0.18.2 or uninstalled
│ │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.18.2
│ │ └─restricted by compatibility requirements with InteractiveDynamics [ec714cd0] to versions: 0.15.0-0.18.2
│ │ └─InteractiveDynamics [ec714cd0] log:
│ │ ├─possible versions are: 0.13.0-0.14.6 or uninstalled
│ │ └─restricted to versions * by an explicit requirement, leaving only versions 0.13.0-0.14.6
│ └─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.8.0-0.9.1
│ └─AbstractPlotting [537997a7] log: see above
├─restricted by compatibility requirements with ColorTypes [3da002f7] to versions: 0.9.6-0.11.2 or uninstalled, leaving only versions: 0.11.0-0.11.2
│ └─ColorTypes [3da002f7] log:
│ ├─possible versions are: 0.7.0-0.11.0 or uninstalled
│ ├─restricted to versions * by ComplexPortraits [17699382], leaving only versions 0.7.0-0.11.0
│ │ └─ComplexPortraits [17699382] log: see above
│ ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.8.0-0.11.0
│ │ └─AbstractPlotting [537997a7] log: see above
│ └─restricted by compatibility requirements with QuartzImageIO [dca85d43] to versions: 0.7.0-0.9.1, leaving only versions: 0.8.0-0.9.1
│ └─QuartzImageIO [dca85d43] log:
│ ├─possible versions are: 0.5.0-0.7.4 or uninstalled
│ ├─restricted by compatibility requirements with Luxor [ae8d54c2] to versions: 0.5.0-0.6.0
│ │ └─Luxor [ae8d54c2] log:
│ │ ├─possible versions are: 0.11.0-2.11.0 or uninstalled
│ │ └─restricted to versions 1 by ThinkJulia [a7f2b756], leaving only versions 1.0.0-1.12.0
│ │ └─ThinkJulia [a7f2b756] log:
│ │ ├─possible versions are: 0.0.0 or uninstalled
│ │ └─ThinkJulia [a7f2b756] is fixed to version 0.0.0
│ └─restricted by compatibility requirements with FixedPointNumbers [53c48c17] to versions: 0.6.0-0.7.4 or uninstalled, leaving only versions: 0.6.0
│ └─FixedPointNumbers [53c48c17] log:
│ ├─possible versions are: 0.5.0-0.8.4 or uninstalled
│ ├─restricted by compatibility requirements with Colors [5ae59095] to versions: 0.5.0-0.8.4
│ │ └─Colors [5ae59095] log: see above
│ ├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.6.0-0.8.4
│ │ └─AbstractPlotting [537997a7] log: see above
│ └─restricted by compatibility requirements with QuartzImageIO [dca85d43] to versions: 0.5.0-0.7.1, leaving only versions: 0.6.0-0.7.1
│ └─QuartzImageIO [dca85d43] log: see above
└─restricted by compatibility requirements with PlotUtils [995b91a9] to versions: 0.12.0-0.12.8 — no versions left
└─PlotUtils [995b91a9] log:
├─possible versions are: 0.5.0-1.0.10 or uninstalled
├─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 0.5.0-1.0.10
│ └─AbstractPlotting [537997a7] log: see above
└─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: 1.0.0-1.0.10
└─AbstractPlotting [537997a7] log: see above

You’re still in the default environment, when you just call activate with no arguments it activates the default environment (think of cd with no arguments taking you back to the home directory). You want activate .

1 Like

OK, got it, thanks.

Is this procedure explicitly documented somewhere (as opposed to having to infer it by piecing together disparate parts of the documentation)?

Yes, it’s all documented - if you got to the link above, Tamas in one of the first replies links to this part of the documentation 3. Managing Packages · Pkg.jl which deals with conflicts and how to interpret the conflict messages.

The other bit - working in environments and activating an environment in a new directory is documented here: 4. Working with Environments · Pkg.jl (indeed your sequence of mkdir, cd, ]activate . is the first example)

1 Like

Ahh … I missed the dot in “activate . “ later.