Skip to content

Doesn't precompile on Windows machines #25

Open

Description

@BoundaryValueProblems

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!

Activity

  1. alhirzel commented on Apr 18, 2023

    @alhirzel
    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.

  2. alhirzel commented on Apr 19, 2023

    @alhirzel
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions