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

Cannot use Pluto with Julia 1.11 (alpha2) #2854

Closed
eschnett opened this issue Mar 21, 2024 · 3 comments
Closed

Cannot use Pluto with Julia 1.11 (alpha2) #2854

eschnett opened this issue Mar 21, 2024 · 3 comments

Comments

@eschnett
Copy link

I am using Julia 1.11 (alpha2), installed on macOS via juliaup. I see this error:

julia> using Pluto
Precompiling Pluto...
Info Given Pluto was explicitly requested, output will be shown live
ERROR: LoadError: UndefVarError: `complete_remote_package` not defined in `Pkg.REPLMode`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:42
  [2] top-level scope
    @ none:1
  [3] eval(m::Module, e::Any)
    @ Core ./boot.jl:428
  [4] var"@static"(__source__::LineNumberNode, __module__::Module, ex::Any)
    @ Base ./osutils.jl:19
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:558
  [6] include(x::String)
    @ Pluto ~/.julia/packages/Pluto/HYpFq/src/Pluto.jl:11
  [7] top-level scope
    @ ~/.julia/packages/Pluto/HYpFq/src/Pluto.jl:53
  [8] include
    @ ./Base.jl:558 [inlined]
  [9] 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, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2679
 [10] top-level scope
    @ stdin:4
in expression starting at /Users/eschnett/.julia/packages/Pluto/HYpFq/src/packages/PkgCompat.jl:285
in expression starting at /Users/eschnett/.julia/packages/Pluto/HYpFq/src/packages/PkgCompat.jl:1
in expression starting at /Users/eschnett/.julia/packages/Pluto/HYpFq/src/Pluto.jl:1
in expression starting at stdin:4
  ✗ Pluto
  0 dependencies successfully precompiled in 10 seconds. 67 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Pluto

Failed to precompile Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781] to "/Users/eschnett/.julia/compiled/v1.11/Pluto/jl_AP8WU5".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] precompilepkgs(pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, timing::Bool, _from_loading::Bool, configs::Pair{…}, io::Base.TTY, fancyprint::Bool)
    @ Base.Precompilation ./precompilation.jl:935
  [3] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2336
  [4] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2175
  [5] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
  [6] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
  [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2166
  [8] macro expansion
    @ ./loading.jl:2106 [inlined]
  [9] macro expansion
    @ ./lock.jl:273 [inlined]
 [10] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2063
 [11] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
 [12] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
 [13] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2056
Some type information was truncated. Use `show(err)` to see complete types.
julia> versioninfo()
Julia Version 1.11.0-alpha2
Commit 9dfd28ab751 (2024-03-18 20:35 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin22.4.0)
  CPU: 16 × Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 8 default, 0 interactive, 4 GC (on 16 virtual cores)
@fonsp
Copy link
Owner

fonsp commented Mar 26, 2024

You can use Pluto#main, or wait for the next release :)

@Geokeke
Copy link

Geokeke commented Oct 23, 2024

I wonder if this issue has been fixed? I encountered the same problem when my Julia was upgraded to 1.11.1:

Failed to precompile Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781] to "/Users/ke/.julia/compiled/v1.11/Pluto/jl_ChomO3".
ERROR: LoadError: UndefVarError: `complete_remote_package` not defined in `Pkg.REPLMode`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:42
  [2] top-level scope
    @ none:1
  [3] eval(m::Module, e::Any)
    @ Core ./boot.jl:430
  [4] var"@static"(__source__::LineNumberNode, __module__::Module, ex::Any)
    @ Base ./osutils.jl:19
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [6] include(x::String)
    @ Pluto ~/.julia/packages/Pluto/9zGI7/src/Pluto.jl:11
  [7] top-level scope
    @ ~/.julia/packages/Pluto/9zGI7/src/Pluto.jl:52
  [8] include
    @ ./Base.jl:557 [inlined]
  [9] 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, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2790
 [10] top-level scope
    @ stdin:5
in expression starting at /Users/ke/.julia/packages/Pluto/9zGI7/src/packages/PkgCompat.jl:278
in expression starting at /Users/ke/.julia/packages/Pluto/9zGI7/src/packages/PkgCompat.jl:1
in expression starting at /Users/ke/.julia/packages/Pluto/9zGI7/src/Pluto.jl:1
in expression starting at stdin:

@fonsp
Copy link
Owner

fonsp commented Oct 25, 2024

@Geokeke Can you update Pluto, try again, and let us know if it still doesn't work? If so, send us you Pluto version number.

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