I just installed Julia 1.7.0 on my new Windows 11 laptop. I’m attempting to install the PyCall package via the REPL like so:
(@v1.7) pkg> add PyCall
Updating registry at `C:\Users\spica\.julia\registries\General.toml`
Resolving package versions...
Installed PyCall ─ v1.92.5
Updating `C:\Users\spica\.julia\environments\v1.7\Project.toml`
[438e738f] + PyCall v1.92.5
Updating `C:\Users\spica\.julia\environments\v1.7\Manifest.toml`
[438e738f] + PyCall v1.92.5
Building PyCall → `C:\Users\spica\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\4ba3651d33ef76e24fef6a598b63ffd1c5e1cd17\build.log`
ERROR: InterruptException:
The InterruptException
at the end is due to me typing ^C. This is because the build hangs just before that. I waited for several minutes (10?), and there was no progress. CPU usage on my system during that time was minimal. The stack trace that resulted is:
Stacktrace:
[1] poptask(W::Base.InvasiveLinkedListSynchronized{Task})
@ Base .\task.jl:827
[2] wait()
@ Base .\task.jl:836
[3] wait(c::Base.GenericCondition{Base.Threads.SpinLock})
@ Base .\condition.jl:123
[4] wait(x::Base.Process)
@ Base .\process.jl:627
[5] success(x::Base.Process)
@ Base .\process.jl:489
[6] success(cmd::Base.CmdRedirect)
@ Base .\process.jl:502
[7] (::Pkg.Operations.var"#63#68"{Bool, Pkg.Types.Context, String})(log::IOStream)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:947
[8] open(::Pkg.Operations.var"#63#68"{Bool, Pkg.Types.Context, String}, ::String, ::Vararg{String}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\io.jl:330
[9] open(::Function, ::String, ::String)
@ Base .\io.jl:328
[10] (::Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec})()
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:945
[11] withenv(::Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, ::Pair{String, String}, ::Vararg{Pair{String}})
@ Base .\env.jl:172
[12] (::Pkg.Operations.var"#99#103"{String, Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec})()
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1506
[13] with_temp_env(fn::Pkg.Operations.var"#99#103"{String, Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1390
[14] (::Pkg.Operations.var"#98#102"{Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1469
[15] mktempdir(fn::Pkg.Operations.var"#98#102"{Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem .\file.jl:750
[16] mktempdir(fn::Function, parent::String) (repeats 2 times)
@ Base.Filesystem .\file.jl:748
[17] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project; force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1435
[18] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1432
[19] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:943
[20] build_versions
@ C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:870 [inlined]
[21] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1186
[22] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:268
[23] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[24] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
[25] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
@ Pkg.REPLMode C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:407
[26] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
@ Pkg.REPLMode C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:385
[27] do_cmd
@ C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:376 [inlined]
[28] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
@ Pkg.REPLMode C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:549
[29] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[30] invokelatest
@ .\essentials.jl:714 [inlined]
[31] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\REPL\src\LineEdit.jl:2493
[32] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\Users\spica\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\REPL\src\REPL.jl:1230
[33] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL .\task.jl:423
This doesn’t make a lot of sense to me, but I’m including it for completeness. Now if I try to rebuild PyCall using:
(@v1.7) pkg> build PyCall
Building Conda ─→ `C:\Users\spica\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6cdc8832ba11c7695f494c9d9a1c31e90959ce0f\build.log`
Building PyCall → `C:\Users\spica\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\4ba3651d33ef76e24fef6a598b63ffd1c5e1cd17\build.log`
Progress [====================> ] 1/2
It still hangs forever (as shown above).
I had a similar problem last night trying to install the IJulia notebook. Everything seemed to go fine, but when I issued a call to notebook()
there was some build activity that hung forever.
I am using Windows 11 so perhaps there is an incompatibility between Julia 1.7.0 and Windows 11? Has anyone else had success using Windows 11 with Julia? The problem has the feel of a locking issue.
Thanks for any insights!
Peter