Installing PythonPlot fails

Precompiling PythonPlot on Windows with Julia 1.9 fails:

(WindTurbines) pkg> precompile
Precompiling project...
  āœ— PythonPlot
  0 dependencies successfully precompiled in 4 seconds. 201 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

PythonPlot [274fc56d-3b97-40fa-a1cd-1b4a50311bf9]

Failed to precompile PythonPlot [274fc56d-3b97-40fa-a1cd-1b4a50311bf9] to "C:\\Users\\uwefechner\\.julia\\compiled\\v1.9\\PythonPlot\\jl_E4A5.tmp".
    CondaPkg Found dependencies: C:\Users\uwefechner\.julia\packages\PythonCall\1f5yE\CondaPkg.toml
    CondaPkg Found dependencies: C:\Users\uwefechner\.julia\packages\PythonPlot\f591M\CondaPkg.toml
    CondaPkg Resolving changes
             + matplotlib
             + python
    CondaPkg Creating environment
             ā”‚ C:\Users\uwefechner\.julia\artifacts\8a699d2ba8dad86c428374c177ac63f8a59fd8d9\bin\micromamba.exe
             ā”‚ -r C:\Users\uwefechner\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root
             ā”‚ create
             ā”‚ -y
             ā”‚ -p C:\Users\uwefechner\repos\WindTurbines\.CondaPkg\env
             ā”‚ --override-channels
             ā”‚ --no-channel-priority
             ā”‚ matplotlib[version='>=1']
             ā”‚ python[version='>=3.7,<4',channel='conda-forge',build='*cpython*']
             ā”” -c conda-forge
ERROR: LoadError: InitError: failed process: Process(`'C:\Users\uwefechner\.julia\artifacts\8a699d2ba8dad86c428374c177ac63f8a59fd8d9\bin\micromamba.exe' -r 'C:\Users\uwefechner\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root' create -y -p 'C:\Users\uwefechner\repos\WindTurbines\.CondaPkg\env' --override-channels --no-channel-priority "matplotlib[version='>=1']" "python[version='>=3.7,<4',channel='conda-forge',build='*cpython*']" -c conda-forge`, ProcessExited(3221226505)) [3221226505]

Stacktrace:
  [1] pipeline_error
    @ .\process.jl:565 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base .\process.jl:480
  [3] run(::Cmd)
    @ Base .\process.jl:477
  [4] _run(io::IO, cmd::Cmd, args::Any; flags::Any)
    @ CondaPkg C:\Users\uwefechner\.julia\packages\CondaPkg\osUdN\src\resolve.jl:370
  [5] _resolve_conda_install(io::Any, conda_env::Any, specs::Any, channels::Any; create::Any)
    @ CondaPkg C:\Users\uwefechner\.julia\packages\CondaPkg\osUdN\src\resolve.jl:271
  [6] resolve(; force::Bool, io::IO, interactive::Bool, dry_run::Bool)
    @ CondaPkg C:\Users\uwefechner\.julia\packages\CondaPkg\osUdN\src\resolve.jl:526
  [7] resolve()
    @ CondaPkg C:\Users\uwefechner\.julia\packages\CondaPkg\osUdN\src\resolve.jl:384
  [8] envdir()
    @ CondaPkg C:\Users\uwefechner\.julia\packages\CondaPkg\osUdN\src\env.jl:70
  [9] init_context()
    @ PythonCall.C C:\Users\uwefechner\.julia\packages\PythonCall\1f5yE\src\cpython\context.jl:63
 [10] __init__()
    @ PythonCall.C C:\Users\uwefechner\.julia\packages\PythonCall\1f5yE\src\cpython\CPython.jl:21
 [11] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1074
 [12] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1020
 [13] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1471
 [14] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1748
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
 [16] macro expansion
    @ .\loading.jl:1613 [inlined]
 [17] macro expansion
    @ .\lock.jl:267 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
 [19] include
    @ .\Base.jl:457 [inlined]
 [20] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2010
 [21] top-level scope
    @ stdin:2
during initialization of module C
in expression starting at C:\Users\uwefechner\.julia\packages\PythonPlot\f591M\src\PythonPlot.jl:2
in expression starting at stdin:2

Any idea?

1 Like