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

Doesn't precompile on Windows machines #25

Open
BoundaryValueProblems opened this issue Mar 13, 2023 · 2 comments
Open

Doesn't precompile on Windows machines #25

BoundaryValueProblems opened this issue Mar 13, 2023 · 2 comments

Comments

@BoundaryValueProblems
Copy link

I just added PythonPlot.jl on my Windows machine, and its precompilation never ends. On the other hand, on my Mac’s, I could precompile it without any problem. I use Julia v1.8.5, PythonPlot v1.0.2, Plots v1.38.7.
By the way, I already have a working version of PyPlot.jl and PyCall.jl on my Windows machine. Should I remove them if I want to use PythonPlot.jl and PythonCall.jl? Can they coexist? Any help would be appreciated!

@alhirzel
Copy link
Contributor

I think I see something similar on Linux, but it seems to depend on my code being in a module. Here is an annotated MNWE - I wonder if you could test something like this @BoundaryValueProblems ?

#!/bin/sh

rm -rf /tmp/Module1

julia -e 'using Pkg; cd("/tmp"); Pkg.generate("Module1"); Pkg.activate("Module1"); Pkg.add.(["Gtk", "PythonPlot"])'

cat <<EOF > /tmp/Module1/src/Module1.jl
module Module1
using Gtk
using PythonPlot
end
EOF

julia --trace-compile=stderr --compiled-modules=no -e '@info "This will work:"; using Pkg; Pkg.activate("/tmp/Module1"); @time using Module1; @info "See, it worked!"'
julia --trace-compile=stderr -e '@info "This will NOT terminate:"; using Pkg; Pkg.activate("/tmp/Module1"); @time using Module1'

And @stevengj - what further testing do you think is the most valuable? I am testing on Julia master and can provide a typescript at your request.

@alhirzel
Copy link
Contributor

alhirzel commented Apr 19, 2023

I bisected the issue that I was encountering, and it starts when this commit landed: JuliaLang/julia@b029fbf

Discussion that may be related - JuliaLang/julia#48506

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

2 participants