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] Install Issue: Failed to run Script (mojo format) #3090

Open
wnjoy1923 opened this issue Jun 20, 2024 · 4 comments
Open

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

wnjoy1923 opened this issue Jun 20, 2024 · 4 comments
Labels
bug Something isn't working Initiative: Format

Comments

@wnjoy1923
Copy link

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/python@3.11/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 wnjoy1923 changed the title Install Issue: Failed to run Script (mojo format) [Bug] Install Issue: Failed to run Script (mojo format) Jun 20, 2024
@wnjoy1923 wnjoy1923 changed the title [Bug] Install Issue: Failed to run Script (mojo format) [BUG] Install Issue: Failed to run Script (mojo format) Jun 20, 2024
Copy link
Collaborator

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

@wnjoy1923
Copy link
Author

wnjoy1923 commented Jun 20, 2024 via email

@walter-erquinigo
Copy link
Contributor

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.

@linear linear bot added the bug Something isn't working label Jul 5, 2024
@wnjoy1923
Copy link
Author

wnjoy1923 commented Jul 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Initiative: Format
Projects
None yet
Development

No branches or pull requests

3 participants