modular icon indicating copy to clipboard operation
modular copied to clipboard

[BUG] Install Issue: Failed to run Script (mojo format)

Open wnjoy1923 opened this issue 1 year ago • 5 comments

When installing Max or Mojo I get an error transcript below. Please note there was an error about an infected file mblack (submitted separately) which I asked Intego to repair.

(max) bill@Bills-23-Black-16 ___ % modular install max

Found release for https://packages.modular.com/max @ 24.4.0

Downloading archive: packages/24.4.0/max-arm64-apple-darwin22.6.0-24.4.0-6-0.tar.zst

Downloaded [ ████████████████████████████████████████████████████ ] 100% 327MiB/327MiB

Extracting downloaded archives.

Extracted [ ████████████████████████████████████████████████████ ] 100% 327MiB/327MiB

Running post-install scripts...

Mojo Tools [ ██████████████████████████░░░░░░░░ ] 50% [mojo][error] Mojo SDK post-install test "mojo format" failed: SubprocessError: Command '/Users/bill/.modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmpfngmap38/test_format.mojo' returned non-zero exit status 254. File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 235, in test_mojo_format self.run_mojo("format", unformatted_path) File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run raise SubprocessError( [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. Mojo Tools [ ██████████████████████████░░░░░░░░ ] 50%
modular: error: failed to run script

Failure Information: - Script: PATH=/opt/homebrew/opt/[email protected]/libexec/bin:.:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bill/.modular/pkg/packages.modular.com_max/bin:/Users/bill/mambaforge/envs/max/bin:/Users/bill/mambaforge/condabin:/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:/Library/Apple/usr/bin HOME=/Users/bill MODULAR_HOME=/Users/bill/.modular PYTHONPATH=/Users/bill/.modular/pkg/packages.modular.com_max/venv/lib/Users/bill/.modular/pkg/packages.modular.com_max/venv/bin/python /Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py --modular-home /Users/bill/.modular --modular-data /Users/bill/.modular --modular-config /Users/bill/.modular --package-path /Users/bill/.modular/pkg/packages.modular.com_max --mojo-config-section mojo-max --tests package,debug,format - Result: 1 - Stderr: [mojo][error] Mojo SDK post-install test "mojo format" failed: SubprocessError: Command '/Users/bill/.modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmpfngmap38/test_format.mojo' returned non-zero exit status 254. File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 235, in test_mojo_format self.run_mojo("format", unformatted_path) File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/bill/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run raise SubprocessError( [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.

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

wnjoy1923 avatar Jun 20 '24 18:06 wnjoy1923

Please include the following information:

  • What OS did you do install Mojo on ?
  • Provide version information for Mojo by pasting the output of mojo -v
  • Provide Modular CLI version by pasting the output of modular -v

ematejska avatar Jun 20 '24 23:06 ematejska

On Jun 20, 2024, at 5:08 PM, ematejska @.***> wrote:

Please include the following information:

What OS did you do install Mojo on ? MacOS Sonoma 14.5 Provide version information for Mojo by pasting the output of mojo -v mojo 24.4.0 (59977802) Provide Modular CLI version by pasting the output of modular -v modular 0.8.0 (39a426b5) — Reply to this email directly, view it on GitHub https://github.com/modularml/mojo/issues/3090#issuecomment-2181688963, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGCPZ2T6NTVER6SIFDBZOD3ZINOGPAVCNFSM6AAAAABJUQUH32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGY4DQOJWGM. You are receiving this because you authored the thread.

wnjoy1923 avatar Jun 20 '24 23:06 wnjoy1923

Thanks for reporting this. I'm so sorry but it's a bit hard to debug this, because the error could be in mojo format or in the self-test tool, but let's give it a try. Have you tried using mojo format directly on a mojo file? Depending on the answer we'll see how to process.

walter-erquinigo avatar Jul 05 '24 15:07 walter-erquinigo

if i do ]  I don’t see any “format” command in the modular.com_max/bin directory… (Ignore the doubled instance of this in PATH, i did “exec zsh” at some point which caused this.)

where would the formatter be and what would be its name?

On Jul 5, 2024, at 5:39 PM, Walter Erquinigo @.***> wrote:

Thanks for reporting this. I'm so sorry but it's a bit hard to debug this, because the error could be in mojo format or in the self-test tool, but let's give it a try. Have you tried using mojo format directly on a mojo file? Depending on the answer we'll see how to process.

— Reply to this email directly, view it on GitHub https://github.com/modularml/mojo/issues/3090#issuecomment-2211084778, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGCPZ2XYWUWDULKITO27HM3ZK243XAVCNFSM6AAAAABJUQUH32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGA4DINZXHA. You are receiving this because you authored the thread.

wnjoy1923 avatar Jul 05 '24 15:07 wnjoy1923

Apologies for the late response. I'm going to close this issue. We test in CI but not on the users machine anymore like modular CLI did. All the self test are now post package but on CI.

rparolin avatar May 27 '25 21:05 rparolin