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

Filed to build the package #383

Closed
likanzhan opened this issue Jan 17, 2021 · 2 comments
Closed

Filed to build the package #383

likanzhan opened this issue Jan 17, 2021 · 2 comments

Comments

@likanzhan
Copy link

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


@likanzhan likanzhan changed the title Error to build the package Filed to build the package Jan 17, 2021
@twavv
Copy link
Member

twavv commented Jan 17, 2021

Most likely a transient error or a firewall problem.

@likanzhan
Copy link
Author

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants