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

ERROR: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to /root/miniconda3/share/julia/compiled/v1.8/IJulia/jl_LLozBR. #1056

Open
YuntianZhao opened this issue Oct 18, 2022 · 2 comments

Comments

@YuntianZhao
Copy link

My versioninfo is

julia> versioninfo()
Julia Version 1.8.2
Platform Info:
  OS: Linux (x86_64-conda-linux-gnu)
  CPU: 2 × Intel(R) Xeon(R) Gold 6161 CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake-avx512)
  Threads: 1 on 2 virtual cores
Environment:
  JULIA_CONDAPKG_BACKEND_BACKUP = 
  JULIA_CONDAPKG_BACKEND = System
  JULIA_LOAD_PATH = @:@miniconda3:@stdlib
  JULIA_LOAD_PATH_BACKUP = 
  JULIA_DEPOT_PATH_BACKUP = 
  JULIA_PROJECT_BACKUP = 
  JULIA_CONDAPKG_EXE = /root/miniconda3/bin/conda
  JULIA_SSL_CA_ROOTS_PATH = /root/miniconda3/ssl/cacert.pem
  JULIA_DEPOT_PATH = /root/miniconda3/share/julia:
  JULIA_SSL_CA_ROOTS_PATH_BACKUP = 
  JULIA_CONDAPKG_EXE_BACKUP = 
  JULIA_PROJECT = @miniconda3

I installed Julia via miniconda conda install -c conda-forge julia.

When I tried to add IJulia, it failed to precompile.

julia> using IJulia
[ Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]
ERROR: LoadError: InitError: SystemError: opening file "/root/miniconda3/share/julia/cert.pem": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] __sslinit__()
    @ MbedTLS ~/miniconda3/share/julia/packages/MbedTLS/yELM7/src/ssl.jl:786
 [10] __init__()
    @ MbedTLS ~/miniconda3/share/julia/packages/MbedTLS/yELM7/src/MbedTLS.jl:55
 [11] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
    @ Base ./loading.jl:831
 [12] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
    @ Base ./loading.jl:1039
 [13] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1315
 [14] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
 [15] macro expansion
    @ ./loading.jl:1180 [inlined]
 [16] macro expansion
    @ ./lock.jl:223 [inlined]
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
 [18] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [19] include(x::String)
    @ IJulia ~/miniconda3/share/julia/packages/IJulia/AQu2H/src/IJulia.jl:33
 [20] top-level scope
    @ ~/miniconda3/share/julia/packages/IJulia/AQu2H/src/IJulia.jl:309
 [21] include
    @ ./Base.jl:419 [inlined]
 [22] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [23] top-level scope
    @ stdin:1
during initialization of module MbedTLS
in expression starting at /root/miniconda3/share/julia/packages/IJulia/AQu2H/src/hmac.jl:1
in expression starting at /root/miniconda3/share/julia/packages/IJulia/AQu2H/src/IJulia.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to /root/miniconda3/share/julia/compiled/v1.8/IJulia/jl_LLozBR.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144

It looks like cert.pem is missing.

@AllanChain
Copy link

I'm having the same issue. After some searching, I found a workaround: JuliaLang/MbedTLS.jl#225 (comment)

The URL there is outdated. The command I use is

sudo wget https://curl.se/ca/cacert.pem -O /usr/share/julia/cert.pem

@schlichtanders
Copy link

The same error occurred for me when using a combined Python + Julia binder docker setup

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

3 participants