jverzani / CalculusWithJulia.jl

Support package for doing Calculus with Julia
https://jverzani.github.io/CalculusWithJuliaNotes.jl/
Other
57 stars 11 forks source link

Unhandled Task ERROR: EOFError: read end of file on M1 Mac #46

Open thezjy opened 2 years ago

thezjy commented 2 years ago

First I get the error:

PackagesNotFoundError: The following packages are not available from current channels:

  - pyqt

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch

which is solved by installing pyqt from another channel. But there is still the Distributed.ProcessExitedException(9) error in the notebooks.

The stack trace from Pluto is not that helpful I guess

Unhandled Task ERROR: EOFError: read end of file
Stacktrace:
 [1] (::Base.var"#wait_locked#645")(s::Sockets.TCPSocket, buf::IOBuffer, nb::Int64)
   @ Base ./stream.jl:892
 [2] unsafe_read(s::Sockets.TCPSocket, p::Ptr{UInt8}, nb::UInt64)
   @ Base ./stream.jl:900
 [3] unsafe_read
   @ ./io.jl:724 [inlined]
 [4] unsafe_read(s::Sockets.TCPSocket, p::Base.RefValue{NTuple{4, Int64}}, n::Int64)
   @ Base ./io.jl:723
 [5] read!
   @ ./io.jl:725 [inlined]
 [6] deserialize_hdr_raw
   @ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Distributed/src/messages.jl:167 [inlined]
 [7] message_handler_loop(r_stream::Sockets.TCPSocket, w_stream::Sockets.TCPSocket, incoming::Bool)
   @ Distributed /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Distributed/src/process_messages.jl:165
 [8] process_tcp_streams(r_stream::Sockets.TCPSocket, w_stream::Sockets.TCPSocket, incoming::Bool)
   @ Distributed /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Distributed/src/process_messages.jl:126
 [9] (::Distributed.var"#99#100"{Sockets.TCPSocket, Sockets.TCPSocket, Bool})()
   @ Distributed ./task.jl:423
jverzani commented 2 years ago

Thanks for these issues! I'll get to the other 2 soon, but with this one can I ask how you are getting the error? (Are you running the notebooks in binder, say or locally within Pluto, or trying to build locally and if so through the idiosyncratic use of Pkg.test, ... ) I'd like to fix this and am curious what is the least intrusive way. (One way is to try to just use GR within Plots and not PyPlot. That is probably best, but might be a bit of effort on my end.)

thezjy commented 2 years ago

I'm running it locally in Pluto on m1 Mac. I suspect the error is caused by PyPlot because notebook not using it (exp_log_functions.jl) runs ok while notebook using it (limits.jl) errors.

thezjy commented 2 years ago

Though I'm only a fews days into Julia, I'd like to help with what I can do.

Can't thank you enough for this awesome and generous learning material!