-
Notifications
You must be signed in to change notification settings - Fork 48
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
Labels
documentation
Improvements or additions to documentation
Comments
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
Thanks for reporting! What's your |
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$ |
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
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 subsequentFINISH THE INSTALL
steps gives me themax
andmojo
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.--- End of shell output ---
Anything else?
I'm on
Apple M1 Max
MacBook Pro, running macOSVentura 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
:The text was updated successfully, but these errors were encountered: