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

[Docs]: Getting errors when installing on MacBook Pro M1 with Ventura and python 3.11 (and 3.12) #217

Open
avioli opened this issue Sep 5, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@avioli
Copy link

avioli commented Sep 5, 2024

Where is the problem?

https://docs.modular.com/max/install#install-max

What can we do better?

Unsure if this is a Docs issue or should be considered a bug of some kind.

After following the guide on https://docs.modular.com/max/install#install-max for Mac and running modular install max I get errors. Following the subsequent FINISH THE INSTALL steps gives me the max and mojo commands, but these errors were not mentioned in the guide.

See shell output

--- Start of shell output ---

NOTE: I had run brew update just an hour ago, so I skipped that.

bash-5.2$ brew install modularml/packages/modular
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 1 tap (shivammathur/php).

You have 1 outdated formula installed.

==> Tapping modularml/packages
Cloning into '/opt/homebrew/Library/Taps/modularml/homebrew-packages'...
remote: Enumerating objects: 144, done.
remote: Counting objects: 100% (144/144), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 144 (delta 35), reused 124 (delta 30), pack-reused 0 (from 0)
Receiving objects: 100% (144/144), 16.60 KiB | 4.15 MiB/s, done.
Resolving deltas: 100% (35/35), done.
Tapped 1 formula (14 files, 26.8KB).
==> Fetching modularml/packages/modular
==> Downloading https://dl.modular.com/public/installer/raw/names/modular-mac-arm64/versions/latest/modular-v0.9.2-macos-arm64.tar.gz
==> Downloading from https://dl.modular.com/public/installer/raw/names/modular-mac-arm64/versions/v0.9.2/modular-v0.9.2-macos-arm64.tar.gz
####################################################################################################################################################################################### 100.0%
==> Installing modular from modularml/packages
==> Caveats
The Modular tool expects or will create a MODULAR_HOME directory.
This defaults to `~/.modular`. You can create your own, and if you do,
please add `MODULAR_HOME=/path/to/your/dir` to your environment.
==> Summary
🍺  /opt/homebrew/Cellar/modular/0.9.2: 7 files, 39.5MB, built in 1 second
==> Running `brew cleanup modular`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

bash-5.2$ python3.11 -m venv ~/max-venv

bash-5.2$ cd /Users/avioli/max-venv/

bash-5.2$ source bin/activate

(max-venv) bash-5.2$ 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 Interop         [ ██████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                                                                 ]  33%                               [mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmpxgqpmxzx/test_mandelbrot' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 196, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmpxgqpmxzx/test_python' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 207, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 356, in test_mojo_run
    self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.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 Interop         [ ██████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                                                                 ]  33%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.local/share/modular/pkg/packages.modular.com_max --mojo-config-section mojo-max --tests build,run`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmpxgqpmxzx/test_mandelbrot' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 196, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmpxgqpmxzx/test_python' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 207, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 356, in test_mojo_run
    self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.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%                               [mojo][error] Mojo SDK post-install test "`mojo format`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmprxo10_dz/test_format.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve Mojo formatter in PATH
  File "/Users/avioli/.local/share/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/avioli/.local/share/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/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo package`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo package /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package -o /tmp/tmp38v6fyt_/test_package.mojopkg' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:8:1: error: unable to locate module 'stdlib'
    fn package_function():
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:9:5: error: use of unknown declaration 'print', 'fn' declarations require explicit variable declarations
        print("This is a function in a package")
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 248, in test_mojo_package
    self.run_mojo(
  File "/Users/avioli/.local/share/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/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo debug`" failed:
SubprocessError: Command ''/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the mojo program path
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug
    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:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.local/share/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/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmprxo10_dz/test_format.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve Mojo formatter in PATH
  File "/Users/avioli/.local/share/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/avioli/.local/share/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/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo package`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo package /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package -o /tmp/tmp38v6fyt_/test_package.mojopkg' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:8:1: error: unable to locate module 'stdlib'
    fn package_function():
    ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:9:5: error: use of unknown declaration 'print', 'fn' declarations require explicit variable declarations
        print("This is a function in a package")
        ^
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 248, in test_mojo_package
    self.run_mojo(
  File "/Users/avioli/.local/share/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/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo debug`" failed:
SubprocessError: Command ''/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the mojo program path
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug
    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.


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

Testing MAX          [ ████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                       ]  66%                               [max][error] MAX SDK post-install test "`max benchmark --input-data-schema relu-torchscript/relu3x100x100-schema.yaml relu-torchscript/relu3x100x100.torchscript`" failed:
SubprocessError: Command 'max benchmark --input-data-schema /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100-schema.yaml /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100.torchscript' returned non-zero exit status 1.
  stdout:
    Modular Benchmarking Tool
    Modular version: 24.4.0-59977802-release
    MLPerf scenario: Single Stream (use --mlperf-scenario to change)
    Compiling model... OK (took 2.093809e+00s)
  stderr:
    
    Compiling model.    
    Compiling model..   
    Done!
    Error preparing model: setup for model forward returned error: unable to locate orc_rt at . Tried reading the config from: /Users/avioli/.modular/modular.cfg.
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 220, in test_max_cli_benchmark_pytorch
    output = self.run_max_cli(
             ^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 196, in run_max_cli
    return self.run("max", subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 175, in run
    raise SubprocessError(
[max][error] Some components of the MAX SDK may have been installed successfully, but others may not work as expected.
[max][error] Please submit an issue to https://github.com/modularml/max and include the full output of the command you just ran.
Testing MAX          [ ████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                       ]  66%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.local/share/modular/pkg/packages.modular.com_max`
	- Result: 1
	- Stderr:
[max][error] MAX SDK post-install test "`max benchmark --input-data-schema relu-torchscript/relu3x100x100-schema.yaml relu-torchscript/relu3x100x100.torchscript`" failed:
SubprocessError: Command 'max benchmark --input-data-schema /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100-schema.yaml /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100.torchscript' returned non-zero exit status 1.
  stdout:
    Modular Benchmarking Tool
    Modular version: 24.4.0-59977802-release
    MLPerf scenario: Single Stream (use --mlperf-scenario to change)
    Compiling model... OK (took 2.093809e+00s)
  stderr:
    
    Compiling model.    
    Compiling model..   
    Done!
    Error preparing model: setup for model forward returned error: unable to locate orc_rt at . Tried reading the config from: /Users/avioli/.modular/modular.cfg.
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 220, in test_max_cli_benchmark_pytorch
    output = self.run_max_cli(
             ^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 196, in run_max_cli
    return self.run("max", subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 175, in run
    raise SubprocessError(
[max][error] Some components of the MAX SDK may have been installed successfully, but others may not work as expected.
[max][error] Please submit an issue to https://github.com/modularml/max and include the full output of the command you just ran.


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

Mojo Commands        [ █████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░  ]  83%                               [mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the lldb path
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py", line 296, in test_mojo_repl
    raise SubprocessError(repl.returncode, " ".join(args), out, err)
[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 Commands        [ █████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░  ]  83%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.local/share/modular/pkg/packages.modular.com_max --mojo-config-section mojo-max --tests help,demangle,repl`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
SubprocessError: Command '/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.local/share/modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the lldb path
  File "/Users/avioli/.local/share/modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py", line 296, in test_mojo_repl
    raise SubprocessError(repl.returncode, " ".join(args), out, err)
[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.


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

Errors detected      [ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ] 100%                               
                                                                 █
                                                             █  █
                                                       █    ██
                                                       █   ███   █
                                                       ██  ████  █
██      ███████   ████████       █████   ▐███████▌   ████████████
██      ▐█████▌   ███████▌   █   ▐█████▌   █████   ▐██████████████
██   ▌   █████   ▐   ████   ▐█▌   ███████   ▐█▌   █████████████████
██   █   ▐███▌   █   ███▌   ███   ▐███████▌     ▐██████████████████
██   █▌   ███   ▐█   ███   ▐███▌   ████████▌   ▐███████████████████
██   ██   ▐█▌   ██   ██▌           ▐██████▌     ▐██████████████████
██   ██▌   █   ▐██   ██             █████   ▐█▌   █████████████████
██   ███       ███   █▌   ███████   ▐██▌   █████   ▐██████████████
██   ███▌     ▐███   █   ▐███████▌   █   ▐███████▌   ████████████


MAX is now installed! Almost...

## FINISH THE INSTALL

Install the MAX Python package and set environment variables as per:
https://modul.ar/get-started

## NEXT STEPS

You can now access the 'max' and 'mojo' CLI tools.
Enter 'max --help' or 'mojo --help'.

For MAX docs, see https://docs.modular.com.
For MAX code examples, see https://github.com/modularml/max.

--- End of shell output ---

Anything else?

I'm on Apple M1 Max MacBook Pro, running macOS Ventura 13.6.7 (22G720)

uname -a: Darwin MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Mon Apr 22 20:49:37 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_ARM64_T6000 arm64

I used python3.11 as per your guide.

python --version: Python 3.12.1

which python3.12: /Users/avioli/miniconda3/bin/python3.12

which python3.11: /opt/homebrew/bin/python3.11

bash --version: GNU bash, version 5.2.32(1)-release (aarch64-apple-darwin22.6.0)

brew --version:

Homebrew 4.3.19-64-g615c53d
Homebrew/homebrew-core (git revision 8a140fb3204; last commit 2024-02-06)
Homebrew/homebrew-cask (git revision 593bbeba19; last commit 2024-02-06)
@avioli avioli added the documentation Improvements or additions to documentation label Sep 5, 2024
@avioli avioli changed the title [Docs]: Getting errors when installing on MacBook Pro M1 with Venture and python 3.11 (and 3.12) [Docs]: Getting errors when installing on MacBook Pro M1 with Ventura and python 3.11 (and 3.12) Sep 5, 2024
@ehsanmok
Copy link
Member

ehsanmok commented Sep 5, 2024

Thanks for reporting! What's your modular -v? Can you try modular clean and modular install max again to see if it persists?

@avioli
Copy link
Author

avioli commented Sep 10, 2024

Sure thing. I believe it did the exact same thing:

bash-5.2$ source bin/activate
(max-venv) bash-5.2$ modular -v
modular 0.9.2 (b3079bd5)
(max-venv) bash-5.2$ modular clean
(max-venv) bash-5.2$ 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 Interop         [ ██████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                                                                 ]  33%                               [mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponn6mzz7/test_mandelbrot' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 196, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponn6mzz7/test_python' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 207, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 356, in test_mojo_run
    self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.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 Interop         [ ██████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                                                                 ]  33%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.modular/pkg/packages.modular.com_max --mojo-config-section mojo-max --tests build,run`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponn6mzz7/test_mandelbrot' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 196, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo build /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponn6mzz7/test_python' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 207, in test_mojo_build
    self.run_mojo(
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:1: error: unable to locate module 'stdlib'
    from complex import ComplexFloat32, ComplexSIMD
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:14:6: error: unable to locate module 'complex'
    from complex import ComplexFloat32, ComplexSIMD
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:16:6: error: unable to locate module 'testing'
    from testing import assert_equal
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:25: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                            ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:35: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                      ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:19:43: error: use of unknown declaration 'Int', 'fn' declarations require explicit variable declarations
    fn mandelbrot_iter(row: Int, col: Int) -> Int:
                                              ^~~
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'object' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:45:27: error: could not find an 'Error' type
    def test_mandelbrot_iter():
                              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:55:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo:56:1: error: 
        test_mandelbrot_iter()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 356, in test_mojo_run
    self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:1: error: unable to locate module 'stdlib'
    from python import Python
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:12:6: error: unable to locate module 'python'
    from python import Python
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:13:6: error: unable to locate module 'sys'
    from sys import argv
         ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'object' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:11: error: could not find an 'Error' type
    def main():
              ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: could not find an 'object' type
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:16:5: error: unable to locate module 'builtin'
    def main():
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_python.mojo:17:1: error: 
        var python = Python()
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-complex.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%                               [mojo][error] Mojo SDK post-install test "`mojo format`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmppf6corvc/test_format.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve Mojo formatter in PATH
  File "/Users/avioli/.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/avioli/.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/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo package`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo package /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package -o /tmp/tmpmr7hx_cf/test_package.mojopkg' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:8:1: error: unable to locate module 'stdlib'
    fn package_function():
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:9:5: error: use of unknown declaration 'print', 'fn' declarations require explicit variable declarations
        print("This is a function in a package")
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 248, in test_mojo_package
    self.run_mojo(
  File "/Users/avioli/.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/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo debug`" failed:
SubprocessError: Command ''/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/Users/avioli/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the mojo program path
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug
    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:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.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/avioli/.modular/pkg/packages.modular.com_max/bin/mojo format /tmp/tmppf6corvc/test_format.mojo' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve Mojo formatter in PATH
  File "/Users/avioli/.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/avioli/.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/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo package`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo package /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package -o /tmp/tmpmr7hx_cf/test_package.mojopkg' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:8:1: error: unable to locate module 'stdlib'
    fn package_function():
    ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/test/test_package/__init__.mojo:9:5: error: use of unknown declaration 'print', 'fn' declarations require explicit variable declarations
        print("This is a function in a package")
        ^
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to parse the provided Mojo source module
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 248, in test_mojo_package
    self.run_mojo(
  File "/Users/avioli/.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/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo debug`" failed:
SubprocessError: Command ''/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/Users/avioli/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the mojo program path
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug
    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.


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

Testing MAX          [ ████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                       ]  66%                               [max][error] MAX SDK post-install test "`max benchmark --input-data-schema relu-torchscript/relu3x100x100-schema.yaml relu-torchscript/relu3x100x100.torchscript`" failed:
SubprocessError: Command 'max benchmark --input-data-schema /Users/avioli/.modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100-schema.yaml /Users/avioli/.modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100.torchscript' returned non-zero exit status 1.
  stdout:
    Modular Benchmarking Tool
    Modular version: 24.4.0-59977802-release
    MLPerf scenario: Single Stream (use --mlperf-scenario to change)
    Compiling model... OK (took 4.762355e+00s)
  stderr:
    
    Compiling model.    
    Done!
    Error preparing model: setup for model forward returned error: unable to locate orc_rt at . Tried reading the config from: /Users/avioli/.modular/modular.cfg.
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 220, in test_max_cli_benchmark_pytorch
    output = self.run_max_cli(
             ^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 196, in run_max_cli
    return self.run("max", subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 175, in run
    raise SubprocessError(
[max][error] Some components of the MAX SDK may have been installed successfully, but others may not work as expected.
[max][error] Please submit an issue to https://github.com/modularml/max and include the full output of the command you just ran.
Testing MAX          [ ████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░                       ]  66%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular/Users/avioli/.modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.modular/pkg/packages.modular.com_max`
	- Result: 1
	- Stderr:
[max][error] MAX SDK post-install test "`max benchmark --input-data-schema relu-torchscript/relu3x100x100-schema.yaml relu-torchscript/relu3x100x100.torchscript`" failed:
SubprocessError: Command 'max benchmark --input-data-schema /Users/avioli/.modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100-schema.yaml /Users/avioli/.modular/pkg/packages.modular.com_max/test/relu-torchscript/relu3x100x100.torchscript' returned non-zero exit status 1.
  stdout:
    Modular Benchmarking Tool
    Modular version: 24.4.0-59977802-release
    MLPerf scenario: Single Stream (use --mlperf-scenario to change)
    Compiling model... OK (took 4.762355e+00s)
  stderr:
    
    Compiling model.    
    Done!
    Error preparing model: setup for model forward returned error: unable to locate orc_rt at . Tried reading the config from: /Users/avioli/.modular/modular.cfg.
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 220, in test_max_cli_benchmark_pytorch
    output = self.run_max_cli(
             ^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 196, in run_max_cli
    return self.run("max", subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-max.py", line 175, in run
    raise SubprocessError(
[max][error] Some components of the MAX SDK may have been installed successfully, but others may not work as expected.
[max][error] Please submit an issue to https://github.com/modularml/max and include the full output of the command you just ran.


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

Mojo Commands        [ █████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░  ]  83%                               [mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the lldb path
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py", line 296, in test_mojo_repl
    raise SubprocessError(repl.returncode, " ".join(args), out, err)
[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 Commands        [ █████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░  ]  83%                               
modular: error: failed to run script
==========================
Failure Information:
	- Script: `PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/Users/avioli/max-venv/bin:/Users/avioli/bin:/Users/avioli/.local/apps/google-cloud-sdk/bin:/Users/avioli/.local/bin:/Users/avioli/miniconda3/bin:/Users/avioli/.cargo/bin:/Users/avioli/go/bin:/Users/avioli/.jbang/bin:/Users/avioli/.jbang/currentjdk/bin:/Users/avioli/.plenv/shims:/Users/avioli/.nodenv/shims:/Users/avioli/.rbenv/shims:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/avioli/fvm/default/bin:/Users/avioli/.pub-cache/bin:/Users/avioli/Library/Android/sdk/emulator:/Users/avioli/Library/Android/sdk/platform-tools:/Users/avioli/.dotnet/tools HOME=/Users/avioli MODULAR_HOME=/Users/avioli/.modular PYTHONPATH=/Users/avioli/.modular/pkg/packages.modular.com_max/venv/lib/Users/avioli/.modular/pkg/packages.modular.com_max/venv/bin/python /Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py --modular-home /Users/avioli/.modular --modular-data /Users/avioli/.modular --modular-config /Users/avioli/.modular --package-path /Users/avioli/.modular/pkg/packages.modular.com_max --mojo-config-section mojo-max --tests help,demangle,repl`
	- Result: 1
	- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
SubprocessError: Command '/Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 1.
  stderr:
    /Users/avioli/.modular/pkg/packages.modular.com_max/bin/mojo: error: unable to resolve the lldb path
  File "/Users/avioli/.modular/pkg/packages.modular.com_max/scripts/checks/self-test-basic.py", line 296, in test_mojo_repl
    raise SubprocessError(repl.returncode, " ".join(args), out, err)
[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.


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

Errors detected      [ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ] 100%                               
                                                                 █
                                                             █  █
                                                       █    ██
                                                       █   ███   █
                                                       ██  ████  █
██      ███████   ████████       █████   ▐███████▌   ████████████
██      ▐█████▌   ███████▌   █   ▐█████▌   █████   ▐██████████████
██   ▌   █████   ▐   ████   ▐█▌   ███████   ▐█▌   █████████████████
██   █   ▐███▌   █   ███▌   ███   ▐███████▌     ▐██████████████████
██   █▌   ███   ▐█   ███   ▐███▌   ████████▌   ▐███████████████████
██   ██   ▐█▌   ██   ██▌           ▐██████▌     ▐██████████████████
██   ██▌   █   ▐██   ██             █████   ▐█▌   █████████████████
██   ███       ███   █▌   ███████   ▐██▌   █████   ▐██████████████
██   ███▌     ▐███   █   ▐███████▌   █   ▐███████▌   ████████████


MAX is now installed! Almost...

## FINISH THE INSTALL

Install the MAX Python package and set environment variables as per:
https://modul.ar/get-started

## NEXT STEPS

You can now access the 'max' and 'mojo' CLI tools.
Enter 'max --help' or 'mojo --help'.

For MAX docs, see https://docs.modular.com.
For MAX code examples, see https://github.com/modularml/max.

(max-venv) bash-5.2$ 

@ehsanmok
Copy link
Member

Please try our new installer called magic. It's meant to solve many issues like that and let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants