modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo
Other
22.31k stars 2.55k forks source link

installation issue on mac M1 . #2312

Open Rishurajesh17 opened 3 months ago

Rishurajesh17 commented 3 months ago

modular install mojo

after running he installation command on my mac m1 i am getting the below output : -

Found release for https://packages.modular.com/mojo @ 24.2.1-2f0dcf11-release

Downloading archive: packages/24.2.1-2f0dcf11-release/mojo-arm64-apple-darwin22.6.0-24.2.1-2f0dcf11-release-12-0.tar.gz

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

Extracting downloaded archives.

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

Extraction complete, setting configs...

Configs complete, running post-install hooks...

[mojo][error] Mojo SDK post-install test "mojo format" failed: SubprocessError: Command '/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/bin/mojo format /tmp/tmpalnxt5u8/test_format.mojo' returned non-zero exit status 255. stderr: [55880] Error loading Python lib '/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python': dlopen: dlopen(/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python, 0x000A): Symbol not found: (_mkfifoat) Referenced from: '/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python.framework/Versions/3.11/Python' Expected in: '/usr/lib/libSystem.B.dylib' File "/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 243, in test_mojo_format self.run_mojo("format", unformatted_path) File "/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 193, in run_mojo return self.run(self.mojo, subcommand, *args) File "/Users/rishurajesh/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 181, 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. modular: error: failed to run script

Failure Information:

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

ilhamfp commented 2 months ago

Having the same problem

$ modular install mojo
# Found release for https://packages.modular.com/mojo @ 24.2.1-2f0dcf11-release
# Downloading archive: packages/24.2.1-2f0dcf11-release/mojo-arm64-apple-darwin22.6.0-24.2.1-2f0dcf11-release-12-0.tar.gz
Downloaded   [ █████████████████████████████████████████████████████████████████████████████████████ ] 100%     167MiB/167MiB             
# Extracting downloaded archives. 
Extracted    [ █████████████████████████████████████████████████████████████████████████████████████ ] 100%     167MiB/167MiB             
# Extraction complete, setting configs...
# Configs complete, running post-install hooks...
[mojo][error] Mojo SDK post-install test "`mojo format`" failed:
SubprocessError: Command '/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/bin/mojo format /tmp/tmpq9icnf05/test_format.mojo' returned non-zero exit status 255.
  stderr:
    [68344] Error loading Python lib '/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python': dlopen: dlopen(/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python, 0x000A): Symbol not found: _mkfifoat
      Referenced from: /Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python.framework/Versions/3.11/Python
      Expected in: /usr/lib/libSystem.B.dylib
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 243, in test_mojo_format
    self.run_mojo("format", unformatted_path)
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 193, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 181, 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.
modular: error: failed to run script
==========================
Failure Information:
        - Script: `PATH=/opt/homebrew/opt/python@3.11/libexec/bin:/opt/homebrew/opt/llvm/bin:/Users/ilhamfp/.nvm/versions/node/v19.4.0/bin:/Users/ilhamfp/.local/bin:/Users/ilhamfp/.pyenv/shims:/Users/ilhamfp/.pyenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Users/ilhamfp/.nvm/versions/node/v19.4.0/bin:/Users/ilhamfp/.local/bin:/Users/ilhamfp/anaconda3/bin:/Users/ilhamfp/anaconda3/condabin:/Users/ilhamfp/.pyenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin HOME=/Users/ilhamfp PYTHONPATH=/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/venv/lib/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/venv/bin/python /Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py --modular-home /Users/ilhamfp/.modular --package-path /Users/ilhamfp/.modular/pkg/packages.modular.com_mojo --mojo-config-section mojo`
        - Result: 1
        - Stderr:
[mojo][error] Mojo SDK post-install test "`mojo format`" failed:
SubprocessError: Command '/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/bin/mojo format /tmp/tmpq9icnf05/test_format.mojo' returned non-zero exit status 255.
  stderr:
    [68344] Error loading Python lib '/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python': dlopen: dlopen(/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python, 0x000A): Symbol not found: _mkfifoat
      Referenced from: /Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/lib/mblack/_internal/Python.framework/Versions/3.11/Python
      Expected in: /usr/lib/libSystem.B.dylib
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 243, in test_mojo_format
    self.run_mojo("format", unformatted_path)
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 193, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ilhamfp/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 181, 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.

==========================
jackos commented 1 month ago

Hi @Rishurajesh17 and @ilhamfp can you please try installing with modular install nightly/mojo and see if you get the same issue?