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

Precompiling problem with PyPlot on 1.10-beta 1 #50757

Closed
ctkelley opened this issue Aug 2, 2023 · 8 comments
Closed

Precompiling problem with PyPlot on 1.10-beta 1 #50757

ctkelley opened this issue Aug 2, 2023 · 8 comments
Labels
compiler:precompilation Precompilation of modules

Comments

@ctkelley
Copy link

ctkelley commented Aug 2, 2023

I have an application that I’m using for a paper. The repo is at

https://github.com/ctkelley/N3Presults

I have an MWE (see below). This is breaking the collection of notebooks for a book. Everything works in 1.9.2 but on
1.10 beta 1 I get a infinirte loop of

[pid 13413] waiting for IO to finish:
 TYPE[FD/PID]       @UV_HANDLE_T->DATA
 timer              @0x6000037d4080->0x1051e9210

Is there a way to stop this? I have no idea why this started to happen today, but it did. MWE below

@ctkelley
Copy link
Author

ctkelley commented Aug 2, 2023

I have an mwe.

module mwe


using PyPlot


export xyzzy


function xyzzy()
println("hello")
end

end

With Julia 1.9.2 no problem. With 1.10beta1 complete failure.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.2 (2023-07-05)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using mwe

julia> xyzzy()
hello

but with 1.10 beta 1 I get

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.0-beta1 (2023-07-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using mwe
[ Info: Precompiling mwe [top-level]

[pid 18751] waiting for IO to finish:
 TYPE[FD/PID]       @UV_HANDLE_T->DATA
 timer              @0x6000002a3980->0x1035f43d0

and it goes on forever.

If I take out using PyPlot it works.

@ctkelley ctkelley changed the title Precompiling koan on 1.10-beta 1 Precompiling problem with PyPlot on 1.10-beta 1 Aug 2, 2023
@ufechner7
Copy link

Did you try to use PythonPlot instead?

@giordano
Copy link
Contributor

giordano commented Aug 2, 2023

Reported already at JuliaPy/PyPlot.jl#572. We discussed with Jameson about this at JuliaCon last week, it's likely a package bug.

@ctkelley
Copy link
Author

ctkelley commented Aug 2, 2023

Just tried PythonPlot and got the same problem.

MAC with M2 Pro

@ufechner7
Copy link

ufechner7 commented Aug 2, 2023

Well, I also saw these warnings, but so far everything worked fine for me despite these warnings...

I am using PythonPlot, and while the precompilation fails with an error, if you restart Julia and type using PythonPlot all works fine... I automated that in my build script.

@ctkelley
Copy link
Author

ctkelley commented Aug 2, 2023

The complaints went on forever and the compile never finished. PyPlot and PythonPlot behaved identically.

@ctkelley
Copy link
Author

ctkelley commented Aug 4, 2023

I just tried, taking @visr 's advice from #50706, but

julia> ENV["JULIA_NUM_PRECOMPILE_TASKS"]=1

did not solve the problem for me.

@giordano
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:precompilation Precompilation of modules
Projects
None yet
Development

No branches or pull requests

4 participants