mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[BUG] Mojo repl fails to run on nightly version: 2024.4.2414 (23d30dcd)

Open midrange22 opened this issue 10 months ago • 1 comments

Bug description

When installing the nightly version: 2024.4.2414 (23d30dcd), the post install test named test_mojo_repl fails, giving this output:

# Configs complete, running post-install hooks...
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:

  File "/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-basic.py", line 310, in test_mojo_repl
    self.assert_contains("42", out)
  File "/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-basic.py", line 160, in assert_contains
    raise CheckError(needle, haystack)
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
Error running install script scripts/checks/self-test-basic.py:
failed to run script

==========================
Failure Information:
	- Script: `PATH=/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/bin:/home/userdev/.modular/pkg/packages.modular.com_max/bin:/usr/local/cuda-12.3/bin:/home/userdev/.cargo/bin:/home/userdev/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin HOME=/home/userdev MODULAR_HOME=/home/userdev/.modular PYTHONPATH=/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/venv/lib/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/venv/bin/python /home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-basic.py --modular-home /home/userdev/.modular --modular-data $_self.modular_data --modular-config $_self.modular_config --package-path /home/userdev/.modular/pkg/packages.modular.com_nightly_mojo --mojo-config-section mojo-nightly --tests help,demangle,repl`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:

  File "/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-basic.py", line 310, in test_mojo_repl
    self.assert_contains("42", out)
  File "/home/userdev/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-basic.py", line 160, in assert_contains
    raise CheckError(needle, haystack)
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.


The compiler and the debugger are both fine however.

Attempting to run the Mojo repl with the command mojo will give the error message error: unknown error.

Steps to reproduce

I used the following sequence of commands:

modular clean
modular install nightly/mojo
mojo

System information

- What OS did you do install Mojo on ? 
  Ubuntu 22.04.4 LTS

- Provide version information for Mojo by pasting the output of `mojo -v` 
  mojo 2024.4.2414 (23d30dcd)

- Provide Modular CLI version by pasting the output of `modular -v` 
  modular 0.7.2 (d0adc668)

midrange22 avatar Apr 25 '24 00:04 midrange22

i get the same problem, repl broken but everything else seems to work (wsl, same os, modular, and mojo versions)

helehex avatar Apr 25 '24 23:04 helehex

fixed in latest nightly

helehex avatar Apr 26 '24 23:04 helehex

Closing this issue, since this bug is fixed in the latest nightly.

midrange22 avatar Apr 27 '24 01:04 midrange22