Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompilation on Windows 10 with Julia 1.9 fails #27

Open
ufechner7 opened this issue May 20, 2023 · 2 comments
Open

Precompilation on Windows 10 with Julia 1.9 fails #27

ufechner7 opened this issue May 20, 2023 · 2 comments

Comments

@ufechner7
Copy link

ufechner7 commented May 20, 2023

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
Copy link
Author

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

@ufechner7
Copy link
Author

ufechner7 commented Jul 27, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant