JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
522 stars 77 forks source link

Filed to build the package #383

Closed likanzhan closed 3 years ago

likanzhan commented 3 years ago

When I intended to build the package, I got the following error:


ERROR: Error building `InteractBase`:
ERROR: LoadError: Operation timed out after 527608 milliseconds with 0 out of 0 bytes received while requesting https://use.fontawesome.com/releases/v5.0.7/js/all.js
Stacktrace:
  [1] (::Downloads.var"#9#17"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Bool, String, Int64, Bool, Bool})(easy::Downloads.Curl.Easy)
    @ Downloads ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:348
  [2] with_handle(f::Downloads.var"#9#17"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Bool, String, Int64, Bool, Bool}, handle::Downloads.Curl.Easy)
    @ Downloads.Curl ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Curl.jl:60
  [3] #8
    @ ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:298 [inlined]
  [4] arg_write(f::Downloads.var"#8#16"{Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Bool, String, Int64, Bool, Bool}, arg::IOStream)
    @ ArgTools ~/julia/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:112
  [5] #7
    @ ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:297 [inlined]
  [6] arg_read
    @ ~/julia/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:61 [inlined]
  [7] request(url::String; input::Nothing, output::IOStream, method::Nothing, headers::Vector{Pair{String, String}}, timeout::Float64, progress::Nothing, verbose::Bool, throw::Bool, downloader::Nothing)
    @ Downloads ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:296
  [8] (::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, String})(output::IOStream)
    @ Downloads ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:209
  [9] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, String}, args::String; kwargs::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:write,), Tuple{Bool}}})
    @ Base ./io.jl:330
 [10] arg_write(f::Function, arg::String)
    @ ArgTools ~/julia/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:86
 [11] #download#2
    @ ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:208 [inlined]
 [12] download(url::String, output::String)
    @ Downloads ~/julia/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:208
 [13] #invokelatest#2
    @ ./essentials.jl:710 [inlined]
 [14] invokelatest
    @ ./essentials.jl:708 [inlined]
 [15] do_download
    @ ./download.jl:24 [inlined]
 [16] download(url::String, path::String)
    @ Base ./download.jl:19
 [17] top-level scope
    @ ~/.julia/packages/InteractBase/sOe2Z/deps/build.jl:18
 [18] include(fname::String)
    @ Base.MainInclude ./client.jl:451
 [19] top-level scope
    @ none:5
in expression starting at /Users/lzhan/.julia/packages/InteractBase/sOe2Z/deps/build.jl:17

Version of the system


Julia Version 1.7.0-DEV.320
Commit 7647ab574f (2021-01-15 22:52 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, haswell)
Environment:
  JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia/static
  JULIA_EDITOR = code
twavv commented 3 years ago

Most likely a transient error or a firewall problem.

likanzhan commented 3 years ago

Thanks, it IS a firewall problem. It is solved if I add the following lines in the .julia/config/startup.jl file:

ENV["HTTP_PROXY"] = "http://127.0.0.1:XXX"
ENV["HTTPS_PROXY"] = "http://127.0.0.1:XXXX"
ENV["ALL_PROXY"] = "socks5://127.0.0.1:XXXX"