mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[Modular CLI] Failure in installing Mojo nightly build

Open sampathchanda opened this issue 3 months ago • 1 comments

Issue description

While running the mojo nightly build installation command with modular CLI, am seeing the following error: Am running on Mac OS Sonoma 14.3.

username@hostname % modular install nightly/mojo
# Found release for https://packages.modular.com/nightly/mojo @ 2024.4.1618
# Downloading archive: packages/2024.4.1618/mojo-arm64-apple-darwin22.6.0-2024.4.1618-17-0.tar.zst
Downloaded   [ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ] 100%   87.0MiB/87.0MiB             
# Extracting downloaded archives. 
Extracted    [ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ] 100%   87.0MiB/87.0MiB             
# Extraction complete, setting configs...
# Configs complete, running post-install hooks...
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:

  File "/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/scripts/post-install/self-test.py", line 306, in test_mojo_repl
    self.assert_contains("42", out)
  File "/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/scripts/post-install/self-test.py", line 156, 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.
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin HOME=/Users/sampath PYTHONPATH=/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/venv/lib/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/venv/bin/python /Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/scripts/post-install/self-test.py --modular-home /Users/sampath/.modular --package-path /Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo --mojo-config-section mojo-nightly`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:

  File "/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/scripts/post-install/self-test.py", line 306, in test_mojo_repl
    self.assert_contains("42", out)
  File "/Users/sampath/.modular/pkg/packages.modular.com_nightly_mojo/scripts/post-install/self-test.py", line 156, 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.


==========================

Steps to reproduce

  • Include relevant code snippet that did not work as expected.
  • If applicable, add screenshots to help explain the problem.
  • Include anything else that might help us debug the issue.

Version Info

- Provide Modular CLI version by pasting the output of `modular -v`
- What OS did you install modular CLI on ?

sampathchanda avatar Apr 21 '24 17:04 sampathchanda