Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build insightface, ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface) #2708

Open
NamanAarzoo opened this issue Dec 21, 2024 · 1 comment

Comments

@NamanAarzoo
Copy link

Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in ./.venv/lib/python3.10/site-packages (from insightface) (1.26.4)
Requirement already satisfied: onnx in ./.venv/lib/python3.10/site-packages (from insightface) (1.17.0)
Requirement already satisfied: tqdm in ./.venv/lib/python3.10/site-packages (from insightface) (4.66.4)
Requirement already satisfied: requests in ./.venv/lib/python3.10/site-packages (from insightface) (2.32.3)
Requirement already satisfied: matplotlib in ./.venv/lib/python3.10/site-packages (from insightface) (3.10.0)
Requirement already satisfied: Pillow in ./.venv/lib/python3.10/site-packages (from insightface) (11.0.0)
Requirement already satisfied: scipy in ./.venv/lib/python3.10/site-packages (from insightface) (1.14.1)
Requirement already satisfied: scikit-learn in ./.venv/lib/python3.10/site-packages (from insightface) (1.6.0)
Requirement already satisfied: scikit-image in ./.venv/lib/python3.10/site-packages (from insightface) (0.25.0)
Requirement already satisfied: easydict in ./.venv/lib/python3.10/site-packages (from insightface) (1.13)
Requirement already satisfied: cython in ./.venv/lib/python3.10/site-packages (from insightface) (3.0.11)
Collecting albumentations (from insightface)
Using cached albumentations-1.4.23-py3-none-any.whl.metadata (36 kB)
Collecting prettytable (from insightface)
Using cached prettytable-3.12.0-py3-none-any.whl.metadata (30 kB)
Requirement already satisfied: PyYAML in ./.venv/lib/python3.10/site-packages (from albumentations->insightface) (6.0.2)
Collecting pydantic>=2.9.2 (from albumentations->insightface)
Using cached pydantic-2.10.4-py3-none-any.whl.metadata (29 kB)
Collecting albucore==0.0.21 (from albumentations->insightface)
Using cached albucore-0.0.21-py3-none-any.whl.metadata (5.3 kB)
Collecting eval-type-backport (from albumentations->insightface)
Using cached eval_type_backport-0.2.0-py3-none-any.whl.metadata (2.2 kB)
Collecting opencv-python-headless>=4.9.0.80 (from albumentations->insightface)
Using cached opencv_python_headless-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl.metadata (20 kB)
Collecting stringzilla>=3.10.4 (from albucore==0.0.21->albumentations->insightface)
Using cached stringzilla-3.11.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (80 kB)
Collecting simsimd>=5.9.2 (from albucore==0.0.21->albumentations->insightface)
Using cached simsimd-6.2.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (66 kB)
Requirement already satisfied: contourpy>=1.0.1 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (1.3.1)
Requirement already satisfied: cycler>=0.10 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (4.55.3)
Requirement already satisfied: kiwisolver>=1.3.1 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (1.4.7)
Requirement already satisfied: packaging>=20.0 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (24.2)
Requirement already satisfied: pyparsing>=2.3.1 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in ./.venv/lib/python3.10/site-packages (from matplotlib->insightface) (2.9.0.post0)
Requirement already satisfied: protobuf>=3.20.2 in ./.venv/lib/python3.10/site-packages (from onnx->insightface) (4.23.2)
Collecting wcwidth (from prettytable->insightface)
Using cached wcwidth-0.2.13-py2.py3-none-any.whl.metadata (14 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.10/site-packages (from requests->insightface) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.10/site-packages (from requests->insightface) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.venv/lib/python3.10/site-packages (from requests->insightface) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.10/site-packages (from requests->insightface) (2024.12.14)
Requirement already satisfied: networkx>=3.0 in ./.venv/lib/python3.10/site-packages (from scikit-image->insightface) (3.4.2)
Requirement already satisfied: imageio!=2.35.0,>=2.33 in ./.venv/lib/python3.10/site-packages (from scikit-image->insightface) (2.36.1)
Requirement already satisfied: tifffile>=2022.8.12 in ./.venv/lib/python3.10/site-packages (from scikit-image->insightface) (2024.12.12)
Requirement already satisfied: lazy-loader>=0.4 in ./.venv/lib/python3.10/site-packages (from scikit-image->insightface) (0.4)
Requirement already satisfied: joblib>=1.2.0 in ./.venv/lib/python3.10/site-packages (from scikit-learn->insightface) (1.4.2)
Requirement already satisfied: threadpoolctl>=3.1.0 in ./.venv/lib/python3.10/site-packages (from scikit-learn->insightface) (3.5.0)
Collecting annotated-types>=0.6.0 (from pydantic>=2.9.2->albumentations->insightface)
Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.27.2 (from pydantic>=2.9.2->albumentations->insightface)
Using cached pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (6.6 kB)
Requirement already satisfied: typing-extensions>=4.12.2 in ./.venv/lib/python3.10/site-packages (from pydantic>=2.9.2->albumentations->insightface) (4.12.2)
Requirement already satisfied: six>=1.5 in ./.venv/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.17.0)
Using cached albumentations-1.4.23-py3-none-any.whl (269 kB)
Using cached albucore-0.0.21-py3-none-any.whl (12 kB)
Using cached prettytable-3.12.0-py3-none-any.whl (31 kB)
Using cached opencv_python_headless-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl (54.8 MB)
Using cached pydantic-2.10.4-py3-none-any.whl (431 kB)
Using cached pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB)
Using cached eval_type_backport-0.2.0-py3-none-any.whl (5.9 kB)
Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Using cached simsimd-6.2.1-cp310-cp310-macosx_11_0_arm64.whl (93 kB)
Using cached stringzilla-3.11.2-cp310-cp310-macosx_11_0_arm64.whl (80 kB)
Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [219 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build/lib.macosx-15-arm64-cpython-310/insightface
copying insightface/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface
creating build/lib.macosx-15-arm64-cpython-310/insightface/app
copying insightface/app/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/app
copying insightface/app/mask_renderer.py -> build/lib.macosx-15-arm64-cpython-310/insightface/app
copying insightface/app/common.py -> build/lib.macosx-15-arm64-cpython-310/insightface/app
copying insightface/app/face_analysis.py -> build/lib.macosx-15-arm64-cpython-310/insightface/app
creating build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/download.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/filesystem.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/transform.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/storage.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/face_align.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
copying insightface/utils/constant.py -> build/lib.macosx-15-arm64-cpython-310/insightface/utils
creating build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/landmark.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/inswapper.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/arcface_onnx.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/retinaface.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/attribute.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_zoo.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/scrfd.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_store.py -> build/lib.macosx-15-arm64-cpython-310/insightface/model_zoo
creating build/lib.macosx-15-arm64-cpython-310/insightface/commands
copying insightface/commands/insightface_cli.py -> build/lib.macosx-15-arm64-cpython-310/insightface/commands
copying insightface/commands/rec_add_mask_param.py -> build/lib.macosx-15-arm64-cpython-310/insightface/commands
copying insightface/commands/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/commands
copying insightface/commands/model_download.py -> build/lib.macosx-15-arm64-cpython-310/insightface/commands
creating build/lib.macosx-15-arm64-cpython-310/insightface/data
copying insightface/data/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/data
copying insightface/data/rec_builder.py -> build/lib.macosx-15-arm64-cpython-310/insightface/data
copying insightface/data/pickle_object.py -> build/lib.macosx-15-arm64-cpython-310/insightface/data
copying insightface/data/image.py -> build/lib.macosx-15-arm64-cpython-310/insightface/data
creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty
copying insightface/thirdparty/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty
creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d
copying insightface/thirdparty/face3d/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d
creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh
creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/init.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
running egg_info
writing insightface.egg-info/PKG-INFO
writing dependency_links to insightface.egg-info/dependency_links.txt
writing entry points to insightface.egg-info/entry_points.txt
writing requirements to insightface.egg-info/requires.txt
writing top-level names to insightface.egg-info/top_level.txt
reading manifest file 'insightface.egg-info/SOURCES.txt'
writing manifest file 'insightface.egg-info/SOURCES.txt'
/private/var/folders/6r/_13zy5sd1p966s7trn9cjpq00000gn/T/pip-build-env-7y1okrax/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'insightface.data.images' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
  
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.
  
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
  
          You can read more about "package discovery" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
  
          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
  
          You can read more about "package data files" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
  
  
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  
  !!
    check.warn(importable)
  /private/var/folders/6r/_13zy5sd1p966s7trn9cjpq00000gn/T/pip-build-env-7y1okrax/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!
  
          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
  
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.
  
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
  
          You can read more about "package discovery" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
  
          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
  
          You can read more about "package data files" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
  
  
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  
  !!
    check.warn(importable)
  /private/var/folders/6r/_13zy5sd1p966s7trn9cjpq00000gn/T/pip-build-env-7y1okrax/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the `packages` configuration.
  !!
  
          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
  
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.
  
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
  
          You can read more about "package discovery" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
  
          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
  
          You can read more about "package data files" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
  
  
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  
  !!
    check.warn(importable)
  creating build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_black.jpg -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_blue.jpg -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_green.jpg -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_white.jpg -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  copying insightface/data/images/t1.jpg -> build/lib.macosx-15-arm64-cpython-310/insightface/data/images
  creating build/lib.macosx-15-arm64-cpython-310/insightface/data/objects
  copying insightface/data/objects/meanshape_68.pkl -> build/lib.macosx-15-arm64-cpython-310/insightface/data/objects
  creating build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build/temp.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  /usr/bin/clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -Iinsightface/thirdparty/face3d/mesh/cython -I/Users/namanaarzoo/homebrew/Cellar/portaudio/19.20140130/include/ -I/Users/namanaarzoo/Downloads/Deep-Live-Cam/.venv/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
  /usr/bin/clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -Iinsightface/thirdparty/face3d/mesh/cython -I/Users/namanaarzoo/homebrew/Cellar/portaudio/19.20140130/include/ -I/Users/namanaarzoo/Downloads/Deep-Live-Cam/.venv/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -o build/temp.macosx-15-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.o
  insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp:1259:10: fatal error: 'numpy/arrayobject.h' file not found
   1259 | #include "numpy/arrayobject.h"
        |          ^~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang++' 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 insightface
Failed to build insightface
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

@NamanAarzoo
Copy link
Author

I already tried many ways to fix it
yes, I have correct versions of things including numpy, xcode tools etc...
(.venv) namanaarzoo@Namans-MacBook-Air Deep-Live-Cam % pip show numpy
Name: numpy
Version: 1.26.4
Summary: Fundamental package for array computing in Python
Home-page: https://numpy.org
Author: Travis E. Oliphant et al.
Author-email:
License: Copyright (c) 2005-2023, NumPy Developers.
Required-by: basicsr, contourpy, facexlib, filterpy, gfpgan, h5py, imageio, insightface, keras, matplotlib, ml-dtypes, numba, onnx, onnxruntime, onnxruntime-silicon, opencv-python, opennsfw2, pygrabber, scikit-image, scikit-learn, scipy, tb-nightly, tensorboard, tensorflow, tifffile, torchvision

I was able to install insightface v0.2 but not latest version ...
(.venv) namanaarzoo@Namans-MacBook-Air Deep-Live-Cam % pip show insightface
Name: insightface
Version: 0.2.1
Summary: InsightFace Toolkit
Home-page: https://github.com/deepinsight/insightface
Author: InsightFace Contributors
Author-email: contact@insightface.ai
License: Apache-2.0
Location: /Users/namanaarzoo/Downloads/Deep-Live-Cam/.venv/lib/python3.10/site-packages
Requires: easydict, matplotlib, numpy, onnx, opencv-python, Pillow, requests, scikit-image, scikit-learn, scipy, tqdm
Required-by:

Please HELPPPP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant