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

Julia 1.11 (alpha2) complete_remote_package not defined in Pkg.REPLMode #2854

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

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.

@ateeple
Copy link

ateeple commented Nov 26, 2024

Getting same error for Pluto in v1.11 Julia. It does not matter if I recompile, remove and redownload, update other packages, it will not update Pluto since the v1.11 upgrade I did a couple days ago. I was running v1.10 before. I have Pluto v0.19.9 because it will not precompile for the update to newer version despite deleting and redownloading.

@fonsp
Copy link
Owner

fonsp commented Dec 4, 2024

@ateeple Which Julia version do you use? Type versioninfo() in the REPL and copy-paste the result.

Do you have a startup.jl file? Or any custom environment variables?

@fonsp
Copy link
Owner

fonsp commented Dec 4, 2024

@ateeple Can you also check your Pluto version number and share it? Follow these instruction to make sure Pluto is at the latest version: https://plutojl.org/en/docs/update/

@urigroisman
Copy link

I'm having the same problem. It all appears after updating to julia 1.11.1:

(@v1.11) pkg> up Pluto
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/.julia/environments/v1.11/Project.toml`
  No Changes to `~/.julia/environments/v1.11/Manifest.toml`
Precompiling project...
  ✗ Pluto
  514 dependencies successfully precompiled in 198 seconds. 54 already precompiled.
  1 dependency had output during precompilation:
┌ WebSockets
│  WARNING: could not import Logging.termlength into WebSockets
│  WARNING: could not import Logging.showvalue into WebSockets
└
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

Pluto

Failed to precompile Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781] to "/Users/ales/.julia/compiled/v1.11/Pluto/jl_pYumin".
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/ales/.julia/packages/Pluto/9zGI7/src/packages/PkgCompat.jl:278
in expression starting at /Users/ales/.julia/packages/Pluto/9zGI7/src/packages/PkgCompat.jl:1
in expression starting at /Users/ales/.julia/packages/Pluto/9zGI7/src/Pluto.jl:1
in expression starting at stdin:

julia>
julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M2 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m2)
Threads: 10 default, 0 interactive, 5 GC (on 6 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 10
(@v1.11) pkg> st Pluto
Status `~/.julia/environments/v1.11/Project.toml`
⌃ [c3e4b0f8] Pluto v0.19.9
Info Packages marked with ⌃ have new versions available and may be upgradable.

@NOTtheMessiah
Copy link

Pluto was working for me yesterday on 1.11.1, and then I added graphviz to the user environment (via nix-shell) and restarted Julia, and then this bug appeared.

@fonsp
Copy link
Owner

fonsp commented Dec 11, 2024

Let's open a new issue when you have problems with Julia 1.11! This issue is about the complete_remote_package error.

@fonsp fonsp changed the title Cannot use Pluto with Julia 1.11 (alpha2) Julia 1.11 (alpha2) complete_remote_package not defined in Pkg.REPLMode Dec 11, 2024
@fonsp
Copy link
Owner

fonsp commented Dec 11, 2024

When anyone runs into this issue again, could you post here and answer:

  1. Which error did you get, can you copy it here?
  2. Which Pluto version do you use? (run Pkg.status())
  3. Which Julia version do you use? (run versioninfo())

(cc @NOTtheMessiah )

@fonsp
Copy link
Owner

fonsp commented Dec 11, 2024

@urigroisman You are not using the latest version of Pluto, check out https://plutojl.org/en/docs/update/ to see why.

@THinnerichs
Copy link

Ran into the same issue with julia=1.11.2 and default version add Pluto gave me, which turned out to be Pluto=0.19.9.
A quick ] update yielded Pluto=0.20.3 and resolved this for me.

@fonsp
Copy link
Owner

fonsp commented Dec 16, 2024

I made #3113 to warn users about similar issues in the future.

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

7 participants