boltz icon indicating copy to clipboard operation
boltz copied to clipboard

Cannot install on M2 Mac, with homebrew present

Open pstogios opened this issue 10 months ago • 3 comments

Hello,

I'm trying to install Boltz-1 on a M2 Mac. I have been using homebrew for installing other things, and I think it may be the cause of an error I am experiencing. Homebrew recommends using pipx install boltz, which returns this error:

Fatal error from pip prevented installation. Full pip output in file:
  /Users/pstogios/.local/pipx/logs/cmd_2025-05-08_13.32.14_pip_errors.log

pip seemed to fail to build package:
  scipy==1.13.1

Some possibly relevant errors from pip install:
  error: subprocess-exited-with-error
  ../scipy/meson.build:163:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake
  error: metadata-generation-failed

Error installing boltz.

So I tried installing via: pip3 install boltz -U --break-system-packages , this also fails with the same error:

Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      
      ../scipy/meson.build:163:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake
      
      A full log can be found at /private/var/folders/5r/8vtr_7q91qs98sd52hpcp2lm0000gn/T/pip-install-xowlt3l1/scipy_206785331bad4014b0bbc9c4477ef633/.mesonpy-uukkmqq9/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Openblas is installed already by homebrew, but it seems pip cannot find it.

How would I be able to fix this?

I appreciate your help, thank you in advance.

pstogios avatar May 08 '25 18:05 pstogios

Use a conda environment. See my fork for Macs : https://github.com/fnachon/boltz

fnachon avatar Jun 14 '25 21:06 fnachon

Use a conda environment. See my fork for Macs : https://github.com/fnachon/boltz

Thank you. This helped immensely.

pstogios avatar Jun 16 '25 23:06 pstogios

Great! Let me know if you have any issues with this forked version, as it is still a work in progress.

fnachon avatar Jun 17 '25 12:06 fnachon