Unable to install NeuralPDE

I am trying to install NeuralPDE on my MacOS M1 machine and regretfully running into an error.
I first tried

Pkg.add("NeuralPDE")

on a Jupyter notebook and the relevant part of the traceback seems

Error building `FFMPEG`: 
┌ Warning: Platform `arm64-apple-darwin22.4.0` is not an officially supported platform
└ @ BinaryProvider ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:450
ERROR: LoadError: KeyError: key "unknown" not found

as well as, some lines below

ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232]

I understand there are some issues with BinaryProvider e.g. see here but it is well above my paygrade.

If I try installing on the Julia REPL

(@v1.9) pkg> add NeuralPDE

and get

Resolving package versions...
  No Changes to `~/.julia/environments/v1.9/Project.toml`
  No Changes to `~/.julia/environments/v1.9/Manifest.toml`
Precompiling project...
  ✗ BinaryProvider
  ✗ FFMPEG
  ✗ Plots
  ✗ Plots → UnitfulExt
  ✗ Plots → IJuliaExt
  ✗ StatsPlots
  421 dependencies successfully precompiled in 442 seconds. 86 already precompiled.
  6 dependencies errored.

I am using Julia 1.9.4.
The output of Sys.MACHINE is

"arm64-apple-darwin22.4.0"

and

(@v1.9) pkg> status --outdated
Status `~/.julia/environments/v1.9/Project.toml`
⌃ [0c46a032] DifferentialEquations v7.11.0 (<v7.15.0)
⌃ [7073ff75] IJulia v1.24.2 (<v1.26.0)
⌃ [b964fa9f] LaTeXStrings v1.3.1 (<v1.4.0)
⌃ [bdcacae8] LoopVectorization v0.12.166 (<v0.12.171)
⌅ [315f7962] NeuralPDE v5.11.0 (<v5.17.0): julia
⌃ [91a5bcdd] Plots v1.39.0 (<v1.40.9)
⌃ [2913bbd2] StatsBase v0.34.2 (<v0.34.4)
⌃ [f3b207a7] StatsPlots v0.15.6 (<v0.15.7)

I am a sporadic Julia user and am struggling to make sense of the above, any hints would be most appreciated, thank you

Can you try the same using Julia 1.11?

If you use juliaup switching between Julia version is trivial.

Installing juliaup is a simple as:

curl -fsSL https://install.julialang.org | sh

When you have it installed, you can do:

juliaup add 1.11
juliaup default 1.11

or

juliaup add 1.9
juliaup default 1.9

to switch back to your old version.

And did you try to install it into an empty project?

mkdir test
cd test
julia --project

and then in Julia:

using Pkg
pkg"add NeuralPDE"

?
Does that work?

Thanks for this, it worked updating to Julia v1.11.
Wrt to your last side question,

why does your package depend on Pkg.jl and Plots.jl at all?

I do not really know… What could I have messed up?

That part of the answer wasn’t too much relevant for you, it was mainly for the other thread :slightly_smiling_face: