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

Kernal does not connect #1126

Closed
LilithHafner opened this issue Oct 19, 2024 · 2 comments
Closed

Kernal does not connect #1126

LilithHafner opened this issue Oct 19, 2024 · 2 comments
Labels

Comments

@LilithHafner
Copy link
Member

When I install and launch a notebook session through IJulia (to try to diagnose LilithHafner/BasicAutoloads.jl#9), the kernel does not connect:

x@x:~$ julia --startup=no
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.1 (2024-10-16)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> activate --temp
  Activating new project at `/tmp/jl_reevLm`

(jl_reevLm) pkg> add IJulia
   Resolving package versions...
    Updating `/tmp/jl_reevLm/Project.toml`
  [7073ff75] + IJulia v1.25.0
    Updating `/tmp/jl_reevLm/Manifest.toml`
  [8f4d0f93] + Conda v1.10.2
  [7073ff75] + IJulia v1.25.0
  [692b3bcd] + JLLWrappers v1.6.1
  [682c06a0] + JSON v0.21.4
  [739be429] + MbedTLS v1.1.9
  [69de0a69] + Parsers v2.8.1
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [b85f4697] + SoftGlobalScope v1.1.0
  [81def892] + VersionParsing v1.3.0
  [c2297ded] + ZMQ v1.3.0
  [8f1865be] + ZeroMQ_jll v4.3.5+0
  [a9144af2] + libsodium_jll v1.0.20+1
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates 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
  [a63ad114] + Mmap 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 IJulia

julia> notebook()
[ Info: running setenv(`/home/x/.julia/conda/3/aarch64/bin/jupyter notebook`,["OPENBLAS_MAIN_FREE=1", "PYTHONIOENCODING=UTF-8", "EDITOR=/usr/bin/nano", "PATH=/home/x/.julia/conda/3/aarch64/bin:/home/x/.julia/dev/hr/target/release:/home/x/.cargo/bin:/home/x/.juliaup/bin:/home/x/.julia/dev/hr/target/release:/home/x/.cargo/bin:/home/x/.local/bin:/home/x/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin", "HISTSIZE=1000", "WAYLAND_DISPLAY=wayland-0", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "XDG_CURRENT_DESKTOP=GNOME", "LANG=en_US.UTF-8", "LOGNAME=x", "XDG_SESSION_DESKTOP=gnome", "MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure", "SHLVL=1", "XDG_RUNTIME_DIR=/run/user/1000", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "DESKTOP_SESSION=gnome", "GDM_LANG=en_US.UTF-8", "XDG_SESSION_TYPE=wayland", "SYSTEMD_EXEC_PID=2139", "_=/home/x/.juliaup/bin/julia", "OPENBLAS_DEFAULT_NUM_THREADS=1", "USER=x", "QT_IM_MODULE=ibus", "GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/54820166_604d_45da_8620_fa0450e1b48e", "MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=", "PWD=/home/x", "USERNAME=x", "XDG_SESSION_CLASS=user", "MOZ_GMP_PATH=/var/lib/widevine/gmp-widevinecdm/system-installed:/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed", "GNOME_TERMINAL_SERVICE=:1.122", "LESSOPEN=||/usr/bin/lesspipe.sh %s", "DISPLAY=:0", "XDG_DATA_DIRS=/home/x/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/", "GDMSESSION=gnome", "SHELL=/bin/bash", "GNOME_SETUP_DISPLAY=:1", "XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.WOJ9V2", "XDG_MENU_PREFIX=gnome-", "CONDARC=/home/x/.julia/conda/3/aarch64/condarc-julia.yml", "DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/ ", "HISTCONTROL=ignoredups", "MAIL=/var/spool/mail/x", "CONDA_PREFIX=/home/x/.julia/conda/3/aarch64", "OPENAI_API_KEY=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", "SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2056,unix/unix:/tmp/.ICE-unix/2056", "XMODIFIERS=@im=ibus", "HOME=/home/x", "TERM=xterm-256color", "LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:", "COLORTERM=truecolor", "HOSTNAME=x", "VTE_VERSION=7402"])

Launches a web browser. When I click on new and select Julia 1.11.1, I get a notebook. It says "Kernel status: connecting" for a minute or so and then says "Kernel status: disconnected" as tooltip text when mousing over the lightning bolt icon.

Any idea what's going wrong here? I get the same issue on asahi linux and on aarch mac.

@stevengj
Copy link
Member

IJulia should be installed in the global environment.

If you update Julia with juliaup, then you need to re-run build IJulia because the location of the julia binary has changed. See JuliaLang/juliaup#857

@LilithHafner
Copy link
Member Author

Installing IJulia in the global environment fixed it.

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

No branches or pull requests

2 participants