JuliaPy / PythonPlot.jl

Plotting for Julia based on matplotlib.pyplot
MIT License
74 stars 8 forks source link

Precompilation on Windows 10 with Julia 1.9 fails #27

Open ufechner7 opened 1 year ago

ufechner7 commented 1 year ago

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 commented 1 year ago

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

ufechner7 commented 1 year ago

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!