Skip to content

Error: Failed building wheel for pyfhel #257

Description

@dunglee30

Description
I'm trying to install pyfhel on MacOS 14.6 with python 3.8.19 and get this error:

Code To Reproduce Error

Collecting pyfhel
  Using cached Pyfhel-3.4.2.tar.gz (1.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.21 (from pyfhel)
  Using cached numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl.metadata (5.6 kB)
Using cached numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl (13.8 MB)
Building wheels for collected packages: pyfhel
  Building wheel for pyfhel (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pyfhel (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [102 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-14.6-arm64-3.8
      creating build/lib.macosx-14.6-arm64-3.8/Pyfhel
      copying Pyfhel/__init__.py -> build/lib.macosx-14.6-arm64-3.8/Pyfhel
      creating build/lib.macosx-14.6-arm64-3.8/Pyfhel/utils
      copying Pyfhel/utils/Scheme_t.py -> build/lib.macosx-14.6-arm64-3.8/Pyfhel/utils
      copying Pyfhel/utils/__init__.py -> build/lib.macosx-14.6-arm64-3.8/Pyfhel/utils
      copying Pyfhel/utils/utils.py -> build/lib.macosx-14.6-arm64-3.8/Pyfhel/utils
      copying Pyfhel/utils/Backend_t.py -> build/lib.macosx-14.6-arm64-3.8/Pyfhel/utils
      running build_clib
      building 'SEAL' cmake-based library
      -- Build type (CMAKE_BUILD_TYPE): Release
      -- The CXX compiler identification is GNU 12.4.0
      -- The C compiler identification is GNU 12.4.0
      -- Checking whether CXX compiler has -isysroot
      -- Checking whether CXX compiler has -isysroot - yes
      -- Checking whether CXX compiler supports OSX deployment target flag
      -- Checking whether CXX compiler supports OSX deployment target flag - yes
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /opt/homebrew/bin/g++-12 - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Checking whether C compiler has -isysroot
      -- Checking whether C compiler has -isysroot - yes
      -- Checking whether C compiler supports OSX deployment target flag
      -- Checking whether C compiler supports OSX deployment target flag - yes
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /opt/homebrew/bin/gcc-12 - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Microsoft SEAL debug mode: OFF
      -- SEAL_USE_CXX17: ON
      -- SEAL_BUILD_DEPS: ON
      -- SEAL_USE_MSGSL: ON
      -- Microsoft GSL: download ...
      CMake Warning (dev) at /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-build-env-0g7yuxc3/overlay/lib/python3.8/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:1953 (message):
        Calling FetchContent_Populate(msgsl) is deprecated, call
        FetchContent_MakeAvailable(msgsl) instead.  Policy CMP0169 can be set to
        OLD to allow FetchContent_Populate(msgsl) to be called directly for now,
        but the ability to call it with declared details will be removed completely
        in a future version.
      Call Stack (most recent call first):
        cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
        cmake/SEALMacros.cmake:17 (include)
        CMakeLists.txt:150 (seal_fetch_thirdparty_content)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found Git: /usr/bin/git (found version "2.39.5 (Apple Git-154)")
      -- SEAL_USE_ZLIB: ON
      -- ZLIB: download ...
      CMake Warning (dev) at /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-build-env-0g7yuxc3/overlay/lib/python3.8/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:1953 (message):
        Calling FetchContent_Populate(zlib) is deprecated, call
        FetchContent_MakeAvailable(zlib) instead.  Policy CMP0169 can be set to OLD
        to allow FetchContent_Populate(zlib) to be called directly for now, but the
        ability to call it with declared details will be removed completely in a
        future version.
      Call Stack (most recent call first):
        cmake/ExternalZLIB.cmake:10 (FetchContent_Populate)
        cmake/SEALMacros.cmake:17 (include)
        CMakeLists.txt:169 (seal_fetch_thirdparty_content)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      CMake Error at /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/build/temp.macosx-14.6-arm64-3.8/Pyfhel/SEAL/thirdparty/zlib-src/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from CMake.
      
        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.
      
        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
      
      
      -- Configuring incomplete, errors occurred!
      make: Makefile: No such file or directory
      make: *** No rule to make target `Makefile'.  Stop.
      building 'Afhel' shared library
      creating build/temp.macosx-14.6-arm64-3.8/private
      creating build/temp.macosx-14.6-arm64-3.8/private/var
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel
      creating build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel
      /opt/homebrew/bin/gcc-12 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -g -I/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel -I/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/build/temp.macosx-14.6-arm64-3.8/Pyfhel/SEAL/native/src -I/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/build/temp.macosx-14.6-arm64-3.8/Pyfhel/SEAL/thirdparty/msgsl-src/include -I/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/native/src -I/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/thirdparty/msgsl-src/include -c /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel/Afseal.cpp -o build/temp.macosx-14.6-arm64-3.8/private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel/Afseal.o -std=c++17 -O3 -Xpreprocessor -fopenmp
      In file included from /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/native/src/seal/util/defines.h:109,
                       from /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/native/src/seal/memorymanager.h:6,
                       from /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/native/src/seal/dynarray.h:6,
                       from /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel/Afseal.h:47,
                       from /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/Afhel/Afseal.cpp:32:
      /private/var/folders/k1/h08rjqb96z12t9_qn8794mt00000gn/T/pip-install-ahgkqjch/pyfhel_81a2506922814d45b7d0ef4d66a9a646/Pyfhel/backend/SEAL/native/src/seal/util/gcc.h:14:10: fatal error: seal/util/config.h: No such file or directory
         14 | #include "seal/util/config.h"
            |          ^~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/opt/homebrew/bin/gcc-12' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyfhel
Failed to build pyfhel
ERROR: Could not build wheels for pyfhel, which is required to install pyproject.toml-based projects

Setup:

  • OS: MacOS 14.6
  • Python: 3.8.19
  • C compiler version: Clang 15.0.0 (clang-1500.3.9.4)
  • Pyfhel Version: 3.4.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions