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

Pluto 0.20: BasicREPL has no field interface #3059

Closed
BrendanHalpin opened this issue Oct 14, 2024 · 3 comments
Closed

Pluto 0.20: BasicREPL has no field interface #3059

BrendanHalpin opened this issue Oct 14, 2024 · 3 comments

Comments

@BrendanHalpin
Copy link

Pluto doesn't start under Julia 1.11.0 (2024-10-07), giving this error:

ERROR: InitError: type BasicREPL has no field interface

A workaround is to Pkg.rm("Pluto") and to then reinstall it. However, this needs to be re-done every session.

See below for a long transcript, resulting from this script which installs Pluto on a new environment.

import Pkg
Pkg.generate("tmp")
Pkg.activate("tmp")
Pkg.add("Pluto")
Pkg.status()
using Pluto
Pkg.rm("Pluto")
Pkg.add("Pluto")
using Pluto
Pluto.run()
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _' |  |
  | | |_| | | | |_| |  |  Version 1.11.0 (2024-10-07)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

┌ Warning: Terminal not fully functional
└ @ Base client.jl:436
julia> cd(expanduser("/tmp/"))

julia> import Pkg
+ 

julia> Pkg.generate("tmp")
+ 
  Generating  project tmp:
    tmp/Project.toml
    tmp/src/tmp.jl
Dict{String, Base.UUID} with 1 entry:
  "tmp" => UUID("a885e6e4-5504-489c-8da7-f74d57cbb273")

julia> Pkg.activate("tmp")
+ 
  Activating project at `/tmp/tmp`

julia> Pkg.add("Pluto")
+ 
   Resolving package versions...
      Compat entries added for Pluto
    Updating `/tmp/tmp/Project.toml`
  [c3e4b0f8] + Pluto v0.20.0
    Updating `/tmp/tmp/Manifest.toml`
  [d1d4a3ce] + BitFlags v0.1.9
  [944b1d66] + CodecZlib v0.7.6
  [f0e56b4a] + ConcurrentUtilities v2.4.2
  [5218b696] + Configurations v0.17.6
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [460bff9d] + ExceptionUnwrapping v0.1.10
  [21656369] + ExpressionExplorer v1.0.4
  [55351af7] + ExproniconLite v0.10.13
  [fb4132e2] + FuzzyCompletions v0.5.5
  [cd3eb016] + HTTP v1.10.8
  [ac1192a8] + HypertextLiteral v0.9.5
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.6.1
  [0e77f7df] + LazilyInitializedFields v1.2.2
  [e6f89c97] + LoggingExtras v1.0.3
  [6c6e2e6c] + MIMEs v0.1.4
  [36869731] + Malt v1.1.2
  [739be429] + MbedTLS v1.1.9
  [99f44e22] + MsgPack v1.2.1
  [4d8831e6] + OpenSSL v1.4.3
  [bac558e1] + OrderedCollections v1.6.3
  [c3e4b0f8] + Pluto v0.20.0
  [72656b73] + PlutoDependencyExplorer v1.0.4
  [91cefc8d] + PrecompileSignatures v3.0.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [2792f1a3] + RegistryInstances v0.1.0
  [05181044] + RelocatableFolders v1.0.1
  [6c6a2e73] + Scratch v1.2.1
  [777ac1f9] + SimpleBufferStream v1.2.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.0
  [3bb67fe8] + TranscodingStreams v0.11.3
  [410a4b4d] + Tricks v0.1.9
  [5c2747f8] + URIs v1.5.1
  [458c3c95] + OpenSSL_jll v3.0.15+1
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates v1.11.0
  [8ba89e20] + Distributed v1.11.0
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching v1.11.0
  [b77e0a4c] + InteractiveUtils v1.11.0
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2 v1.11.0
  [8f399da3] + Libdl v1.11.0
  [56ddb016] + Logging v1.11.0
  [d6f4376e] + Markdown v1.11.0
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.11.0
  [de0858da] + Printf v1.11.0
  [3fa0cd96] + REPL v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization v1.11.0
  [6462fe0b] + Sockets v1.11.0
  [f489334b] + StyledStrings v1.11.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test v1.11.0
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [deac9b47] + LibCURL_jll v8.6.0+0
  [e37daf67] + LibGit2_jll v1.7.2+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.6+0
  [14a3606d] + MozillaCACerts_jll v2023.12.12
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850ede] + nghttp2_jll v1.59.0+0
  [3f19e933] + p7zip_jll v17.4.0+2
Precompiling project...
  Progress [>                                        ]  0/1
  ◓ tmp

  ◑ tmp
  Progress [>                                        ]  0/1
  ◒ tmp
  Progress [>                                        ]  0/1
  ◐ tmp
  Progress [>                                        ]  0/1
  ◓ tmp
  Progress [========================================>]  1/1
  1 dependency successfully precompiled in 1 seconds. 67 already precompiled.

julia> Pkg.status()
+ 
Project tmp v0.1.0
Status `/tmp/tmp/Project.toml`
  [c3e4b0f8] Pluto v0.20.0

julia> using Pluto
+ 
ERROR: InitError: type BasicREPL has no field interface
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] repl_init(repl::REPL.BasicREPL)
    @ REPLExt ~/.julia/juliaup/julia-1.11.0+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:164
  [3] __init__()
    @ REPLExt ~/.julia/juliaup/julia-1.11.0+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:305
  [4] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1336
  [5] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1324
  [6] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{…}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1213
  [7] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1169 [inlined]
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{…}, DEPOT_PATH::Vector{…})
    @ Base ./loading.jl:1959
  [9] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2435
 [10] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2300
 [11] #invoke_in_world#3
    @ ./essentials.jl:1088 [inlined]
 [12] invoke_in_world
    @ ./essentials.jl:1085 [inlined]
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2287
 [14] macro expansion
    @ ./loading.jl:2226 [inlined]
 [15] macro expansion
    @ ./lock.jl:273 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2183
 [17] #invoke_in_world#3
    @ ./essentials.jl:1088 [inlined]
 [18] invoke_in_world
    @ ./essentials.jl:1085 [inlined]
 [19] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2176
during initialization of module REPLExt
Some type information was truncated. Use `show(err)` to see complete types.

julia> Pkg.rm("Pluto")
+ 
    Updating `/tmp/tmp/Project.toml`
  [c3e4b0f8] - Pluto v0.20.0
    Updating `/tmp/tmp/Manifest.toml`
  [d1d4a3ce] - BitFlags v0.1.9
  [944b1d66] - CodecZlib v0.7.6
  [f0e56b4a] - ConcurrentUtilities v2.4.2
  [5218b696] - Configurations v0.17.6
  [9a962f9c] - DataAPI v1.16.0
  [e2d170a0] - DataValueInterfaces v1.0.0
  [460bff9d] - ExceptionUnwrapping v0.1.10
  [21656369] - ExpressionExplorer v1.0.4
  [55351af7] - ExproniconLite v0.10.13
  [fb4132e2] - FuzzyCompletions v0.5.5
  [cd3eb016] - HTTP v1.10.8
  [ac1192a8] - HypertextLiteral v0.9.5
  [82899510] - IteratorInterfaceExtensions v1.0.0
  [692b3bcd] - JLLWrappers v1.6.1
  [0e77f7df] - LazilyInitializedFields v1.2.2
  [e6f89c97] - LoggingExtras v1.0.3
  [6c6e2e6c] - MIMEs v0.1.4
  [36869731] - Malt v1.1.2
  [739be429] - MbedTLS v1.1.9
  [99f44e22] - MsgPack v1.2.1
  [4d8831e6] - OpenSSL v1.4.3
  [bac558e1] - OrderedCollections v1.6.3
  [c3e4b0f8] - Pluto v0.20.0
  [72656b73] - PlutoDependencyExplorer v1.0.4
  [91cefc8d] - PrecompileSignatures v3.0.3
  [aea7be01] - PrecompileTools v1.2.1
  [21216c6a] - Preferences v1.4.3
  [2792f1a3] - RegistryInstances v0.1.0
  [05181044] - RelocatableFolders v1.0.1
  [6c6a2e73] - Scratch v1.2.1
  [777ac1f9] - SimpleBufferStream v1.2.0
  [3783bdb8] - TableTraits v1.0.1
  [bd369af6] - Tables v1.12.0
  [3bb67fe8] - TranscodingStreams v0.11.3
  [410a4b4d] - Tricks v0.1.9
  [5c2747f8] - URIs v1.5.1
  [458c3c95] - OpenSSL_jll v3.0.15+1
  [0dad84c5] - ArgTools v1.1.2
  [56f22d72] - Artifacts v1.11.0
  [2a0f44e3] - Base64 v1.11.0
  [ade2ca70] - Dates v1.11.0
  [8ba89e20] - Distributed v1.11.0
  [f43a241f] - Downloads v1.6.0
  [7b1f6079] - FileWatching v1.11.0
  [b77e0a4c] - InteractiveUtils v1.11.0
  [b27032c2] - LibCURL v0.6.4
  [76f85450] - LibGit2 v1.11.0
  [8f399da3] - Libdl v1.11.0
  [56ddb016] - Logging v1.11.0
  [d6f4376e] - Markdown v1.11.0
  [ca575930] - NetworkOptions v1.2.0
  [44cfe95a] - Pkg v1.11.0
  [de0858da] - Printf v1.11.0
  [3fa0cd96] - REPL v1.11.0
  [9a3f8284] - Random v1.11.0
  [ea8e919c] - SHA v0.7.0
  [9e88b42a] - Serialization v1.11.0
  [6462fe0b] - Sockets v1.11.0
  [f489334b] - StyledStrings v1.11.0
  [fa267f1f] - TOML v1.0.3
  [a4e569a6] - Tar v1.10.0
  [8dfed614] - Test v1.11.0
  [cf7118a7] - UUIDs v1.11.0
  [4ec0a83e] - Unicode v1.11.0
  [deac9b47] - LibCURL_jll v8.6.0+0
  [e37daf67] - LibGit2_jll v1.7.2+0
  [29816b5a] - LibSSH2_jll v1.11.0+1
  [c8ffd9c3] - MbedTLS_jll v2.28.6+0
  [14a3606d] - MozillaCACerts_jll v2023.12.12
  [83775a58] - Zlib_jll v1.2.13+1
  [8e850ede] - nghttp2_jll v1.59.0+0
  [3f19e933] - p7zip_jll v17.4.0+2

julia> Pkg.add("Pluto")
+ 
   Resolving package versions...
      Compat entries added for Pluto
    Updating `/tmp/tmp/Project.toml`
  [c3e4b0f8] + Pluto v0.20.0
    Updating `/tmp/tmp/Manifest.toml`
  [d1d4a3ce] + BitFlags v0.1.9
  [944b1d66] + CodecZlib v0.7.6
  [f0e56b4a] + ConcurrentUtilities v2.4.2
  [5218b696] + Configurations v0.17.6
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [460bff9d] + ExceptionUnwrapping v0.1.10
  [21656369] + ExpressionExplorer v1.0.4
  [55351af7] + ExproniconLite v0.10.13
  [fb4132e2] + FuzzyCompletions v0.5.5
  [cd3eb016] + HTTP v1.10.8
  [ac1192a8] + HypertextLiteral v0.9.5
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.6.1
  [0e77f7df] + LazilyInitializedFields v1.2.2
  [e6f89c97] + LoggingExtras v1.0.3
  [6c6e2e6c] + MIMEs v0.1.4
  [36869731] + Malt v1.1.2
  [739be429] + MbedTLS v1.1.9
  [99f44e22] + MsgPack v1.2.1
  [4d8831e6] + OpenSSL v1.4.3
  [bac558e1] + OrderedCollections v1.6.3
  [c3e4b0f8] + Pluto v0.20.0
  [72656b73] + PlutoDependencyExplorer v1.0.4
  [91cefc8d] + PrecompileSignatures v3.0.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [2792f1a3] + RegistryInstances v0.1.0
  [05181044] + RelocatableFolders v1.0.1
  [6c6a2e73] + Scratch v1.2.1
  [777ac1f9] + SimpleBufferStream v1.2.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.0
  [3bb67fe8] + TranscodingStreams v0.11.3
  [410a4b4d] + Tricks v0.1.9
  [5c2747f8] + URIs v1.5.1
  [458c3c95] + OpenSSL_jll v3.0.15+1
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates v1.11.0
  [8ba89e20] + Distributed v1.11.0
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching v1.11.0
  [b77e0a4c] + InteractiveUtils v1.11.0
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2 v1.11.0
  [8f399da3] + Libdl v1.11.0
  [56ddb016] + Logging v1.11.0
  [d6f4376e] + Markdown v1.11.0
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.11.0
  [de0858da] + Printf v1.11.0
  [3fa0cd96] + REPL v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization v1.11.0
  [6462fe0b] + Sockets v1.11.0
  [f489334b] + StyledStrings v1.11.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test v1.11.0
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [deac9b47] + LibCURL_jll v8.6.0+0
  [e37daf67] + LibGit2_jll v1.7.2+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.6+0
  [14a3606d] + MozillaCACerts_jll v2023.12.12
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850ede] + nghttp2_jll v1.59.0+0
  [3f19e933] + p7zip_jll v17.4.0+2

julia> using Pluto
+ 

julia> Pluto.run()
[ Info: Loading...
┌ Info: 
└ Opening http://localhost:1235/?secret=JKN0Jq3C in your default browser... ~ have fun!
┌ Info: 
│ Press Ctrl+C in this terminal to stop Pluto
└ 
@fonsp fonsp changed the title Pluto Pluto 0.20: BasicREPL has no field interface Oct 14, 2024
@fonsp
Copy link
Owner

fonsp commented Oct 14, 2024

Strange! It asked the Pkg developers about this: JuliaLang/Pkg.jl#4048

It looks like the error was printed by the REPL, but the first using Pluto already worked: you don't need to Pkg.rm and Pkg.add Pluto again, you can just ignore the error and use Pluto.

If someone else faces this issue, please post a message here!

@BrendanHalpin
Copy link
Author

Thanks, can confirm that ignoring the error works. That makes it a much smaller problem.

@fonsp
Copy link
Owner

fonsp commented Nov 13, 2024

Closing this issue in favour of JuliaLang/Pkg.jl#4048, but please post here if someone finds this issue again!

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