kevin218 / Eureka

Eureka! is a data reduction and analysis pipeline intended for time-series observations with JWST.
https://eurekadocs.readthedocs.io/
MIT License
58 stars 45 forks source link

[Bug]: Installation on M2-chip Mac Book Pro fails with ERROR: Failed building wheel for numpy #552

Closed trappist1i closed 1 year ago

trappist1i commented 1 year ago

FAQ check

Instrument

Other (any stage)

What happened?

Installation fails with ERROR: Failed building wheel for numpy on my Mac Book Pro 16" 2023 with M2 Pro chip, Ventura 13.4.1, Python 3.11.

Error traceback output

The error message is the following:

  error: Command "clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/src/umath -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/src/npymath -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/src/common -Ibuild/src.macosx-10.9-universal2-3.11/numpy/core/src/npymath -c numpy/core/src/multiarray/array_assign_scalar.c -o build/temp.macosx-10.9-universal2-3.11/numpy/core/src/multiarray/array_assign_scalar.o -MMD -MF build/temp.macosx-10.9-universal2-3.11/numpy/core/src/multiarray/array_assign_scalar.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
  Failed to build numpy
  ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

What operating system are you using?

Mac OS 13.4.1

What version of Python are you running?

Python 3.11

What Python packages do you have installed?

(eureka) bash-3.2$ conda list

packages in environment at /Users/Michael/Programs/miniconda3/envs/eureka:

#

Name Version Build Channel

Code of Conduct

taylorbell57 commented 1 year ago

Hi, first I'm not confident that Eureka! will work on python version 3.11, so that is one thing you may need to change. I know it works well with 3.9.7, and I expect it should work with 3.10, but I've never tested it on 3.11.

Beyond that, please follow our installation instructions and take a look at our FAQ page, both of which have recommendations for those trying to install on Apple silicon.

dreamjade commented 1 year ago

It also fails in 3.10

taylorbell57 commented 1 year ago

@dreamjade, your issue #553 is completely unrelated to this issue

trappist1i commented 1 year ago

@taylorbell57 In fact, my attempt to install Eureka! was done in a conda environnement with Python 3.9.7

taylorbell57 commented 1 year ago

@trappist1i did you follow our M1/M2 chip installation instructions on our documentation page as I'd described above? Because Apple came out with its own processors, not all of our dependencies play well with the new processors, but the conda environment.yml method worked for Apple silicon last I'd heard

trappist1i commented 1 year ago

@taylorbell57 I tried the environement.yml method, and it worked. Thanks!