PythonPlot.jl icon indicating copy to clipboard operation
PythonPlot.jl copied to clipboard

Precompilation on Windows 10 with Julia 1.9 fails

Open ufechner7 opened this issue 2 years ago • 2 comments

I tried to install: a. PythonPlot b. PythonPlot#main

using the package manager after a fresh install of Julia and deleting the .julia directory.

In both cases the precompilation fails.

But strange enough, if I restart Julia and do

using PythonPlot

it downloads and installs a lot of stuff and it just works.

Any idea?

ufechner7 avatar May 20 '23 20:05 ufechner7

The PythonCall issue was closed as "won't fix"...

ufechner7 avatar Jul 27 '23 10:07 ufechner7

I use now the following script for the installation as workaround:

#!/bin/bash -eu
if [[ $(basename $(pwd)) == "bin" ]]; then
    cd ..
fi

echo "Updating packages..."
if test -f "Manifest.toml"; then
   mv Manifest.toml Manifest.toml.bak
fi
rm -rf .CondaPkg
rm -rf ~/.julia
mv Project.toml Project.toml.bak
julia --project="." --pkgimages=no -e "using Pkg;Pkg.add(\"PythonPlot\")" | true
julia --project --pkgimages=no -e "using PythonPlot"
rm Project.toml
mv Project.toml.bak Project.toml

Don't copy and paste this script without thinking, it deletes your .julia folder!

ufechner7 avatar Jul 27 '23 14:07 ufechner7