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

[BUG] REPL/Mojo Kernel doesn't work on ubuntu 24.04 #3530

Open
cosmobet opened this issue Sep 23, 2024 · 5 comments
Open

[BUG] REPL/Mojo Kernel doesn't work on ubuntu 24.04 #3530

cosmobet opened this issue Sep 23, 2024 · 5 comments
Assignees
Labels
Area: REPL/Notebooks bug Something isn't working mojo-repo Tag all issues with this label

Comments

@cosmobet
Copy link

cosmobet commented Sep 23, 2024

Bug description

I found a problem when I wanted to run MAX(Conda ENV Mojo kernel) on jupyter vs code, Mojo kernel keeps looping connection and there is an error. I have tried it with magic run jupyter lab --no-browser, copy and paste to existing jupyter kernel but it still doesn't work. Tried with magic run jupyter lab and open jupyter lab web, MAX(Conda ENV Mojo kernel) will always be disconnected and can't connect to kernels. But python kernels work as expected.

Steps to reproduce

  • Include relevant code snippet or link to code that did not work as expected.
  • If applicable, add screenshots to help explain the problem.
    image
  • If using the Playground, name the pre-existing notebook that failed and the steps that led to failure.
  • Include anything else that might help us debug the issue.
> Kernel Id = .jvsc74a57bd0ac1a21f99c46d41fa3cc83eaf8eb2794a64cf00398a5031059d5088e638eb598#mojo./home/~/mojo-test/.magic/envs/default/python././home/~/mojo-test/.magic/envs/default/bin/python#/home/~/mojo-test/.magic/envs/default/share/jupyter/kernels/mojo/mojokernel.py#-f#{connection_file}#--modular-home#/home/~/mojo-test/.magic/envs/default/share/max#--mojo-config-section#mojo-max
    > Interpreter Id = ~/mojo-test/.magic/envs/default/bin/python
    > at L_.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.1-linux-x64/dist/extension.node.js:304:11641)
    > stdErr = error: Failed to launch `mojo-repl-entry-point` process: 
[1845:1845:20240918,100607.292710:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.292839:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.292874:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.292910:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293014:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293103:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293178:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293232:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293269:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293302:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293356:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293873:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293927:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.293975:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294011:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294062:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294092:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294125:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294177:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294216:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294288:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294344:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294376:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294410:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294463:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294518:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294554:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294591:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294694:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294749:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294786:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294855:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.294908:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295006:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295105:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295161:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295197:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295232:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295263:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295323:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295363:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295405:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295467:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.295508:ERROR elf_dynamic_array_reader.h:64] tag not found
[1845:1845:20240918,100607.299699:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1845:1845:20240918,100607.299712:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
mojo-lldb-plugin crashed!
Please file a bug report.
10:06:08.937 [info] Process Execution: ~/mojo-test/.magic/envs/default/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
Failed to start the Kernel. 
error: Failed to launch `mojo-repl-entry-point` process: 
[19989:19989:20240923,020637.675759:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.675889:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.675924:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.675959:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676027:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676116:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676204:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676258:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676293:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676329:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676381:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676866:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676926:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676961:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.676995:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677046:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677078:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677113:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677168:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677220:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677315:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677367:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677399:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677432:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677484:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677520:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677571:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677607:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677732:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677786:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677823:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677890:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.677941:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678015:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678108:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678159:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678194:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678245:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678277:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678317:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678372:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678415:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678474:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.678514:ERROR elf_dynamic_array_reader.h:64] tag not found
[19989:19989:20240923,020637.682583:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[19989:19989:20240923,020637.682600:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
mojo-lldb-plugin crashed!

System information

shell

  • What OS did you do install Mojo on ?
    WSL2, Ubuntu 24.04
  • Provide version information for Mojo by pasting the output of mojo -v
max --version
max 24.5.0 (e8aacb95)
Modular version 24.5.0
mojo --version
mojo 24.5.0 (e8aacb95)
  • Provide Modular CLI version by pasting the output of modular -v
magic --version
magic 0.3.0
@cosmobet cosmobet added bug Something isn't working mojo-repo Tag all issues with this label labels Sep 23, 2024
@walter-erquinigo
Copy link
Contributor

Thanks for reporting this.
This issue is very strange, as it seems that one of our underlying libraries is crashing at initialization.
@zbowling , do you know if we support Ubuntu 24.04 or just 22?

@cosmobet
Copy link
Author

cosmobet commented Sep 24, 2024

do you know if we support Ubuntu 24.04 or just 22?

@walter-erquinigo Do I have to use ubuntu 22.04 to use mojo in jupyter vs code or browser?

Copy link
Contributor

I'm not sure. IIRC we are thoroughly testing on 22.04, and I don't know about the support on other linux platforms. Hopefully @zbowling will chime in when he gets back from his PTO.

@cosmobet
Copy link
Author

cosmobet commented Sep 25, 2024

@walter-erquinigo I have tried it on Ubuntu 22.04 and it worked very well without any problems on the first installation attempt. I feel Mojo Kernel is not working properly with Ubuntu 24.04, but I hope there will be fix for this in the next update. 😄

@walter-erquinigo
Copy link
Contributor

Thanks for trying it out!
What I imagine is that we are having some issues with resolving link time dependencies. I'll be mindful of this when we start testing on ubuntu 24.04. Thank you!

@walter-erquinigo walter-erquinigo changed the title [BUG] Failed to launch mojo-repl-entry-point [BUG] REPL/Mojo Kernel doesn't work on ubuntu 24.04 Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: REPL/Notebooks bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants