modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.35k stars 2.6k forks source link

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

Open wnjoy1923 opened 5 months ago

wnjoy1923 commented 5 months ago

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:

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

ematejska commented 5 months ago

Please include the following information:

wnjoy1923 commented 5 months ago

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.

walter-erquinigo commented 4 months ago

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.

wnjoy1923 commented 4 months ago

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.