TheCGO / fiscalsim-us

FiscalSim US is a microsimulation model of the US federal and state tax and benefit system relating to households and individuals.
https://thecgo.github.io/fiscalsim-us/
GNU Affero General Public License v3.0
11 stars 12 forks source link

Mac tests are failing in CI #81

Open rickecon opened 4 months ago

rickecon commented 4 months ago

A new error has started occurring in our build_and_test.yml GH Actions in which the macos-latest tests are failing in Python 3.11 due to an issue with the h5py package which uses HDF5. See PR #80.

Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      /var/folders/3m/p59k4qdj0f17st0gn2cmj3[64](https://github.com/TheCGO/fiscalsim-us/actions/runs/9031457882/job/24819287278?pr=80#step:4:65)0000gn/T/H5close55oxrig4.c:1:10: fatal error: 'H5public.h' file not found
      #include "H5public.h"
               ^~~~~~~~~~~~
      1 error generated.
      cpuinfo failed, assuming no CPU features: 'flags'
      * Using Python 3.11.9 (v3.11.9:de54cf5be3, Apr  2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)]
      * Found cython 3.0.10
      * USE_PKGCONFIG: True
      .. ERROR:: Could not find a local HDF5 installation.
         You may need to explicitly state where your local HDF5 headers and
         library can be found by setting the ``HDF5_DIR`` environment
         variable or by using the ``--hdf5`` command-line option.
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
make: *** [install] Error 1
Error: Process completed with exit code 2.

I am temporarily removing the mac tests from build_and_test.yml, but I need to get those back in as soon as possible.