Open VirtualityDave opened 1 year ago
I have same error
I think this might help https://github.com/Gourieff/sd-webui-reactor#insightfacebuild
I think this might help https://github.com/Gourieff/sd-webui-reactor#insightfacebuild
It helped a little - there were more missing installs. I managed to fix a couple, but am now stuck on this one: module 'cv2.gapi.wip.draw' has no attribute 'Text'
For me, installing xorg-libxext and pillow-simd seems to fix the issue.
After I installed the pre-built insightfacebuild hngn97 recommended and things were still not working I gave up and decided to look at controlnets instead. Something during the setup process for controlnets fixed the insightface issues and I'm now up and running. Since controlnet seems to accidently set things up correctly for insightface, I'm guessing this indicates some sort of issue with the insightface setup so I'll leave the issue open.
On linux/ubuntu you need to have python dev installed, for example sudo apt install python3.10-dev, replace <<3.10 >> with your python version
Windows
winget install -e --id Microsoft.VCRedist.2015+.x64
winget install -e --id Microsoft.VisualStudio.2022.BuildTools --override "--wait --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
Building wheel for insightface (pyproject.toml) ... done
I think this might help https://github.com/Gourieff/sd-webui-reactor#insightfacebuild
solved, thanks
On linux/ubuntu you need to have python dev installed, for example sudo apt install python3.10-dev, replace <<3.10 >> with your python version
It's useful in my case.
Windows
winget install -e --id Microsoft.VCRedist.2015+.x64 winget install -e --id Microsoft.VisualStudio.2022.BuildTools --override "--wait --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
Building wheel for insightface (pyproject.toml) ... done
This helps, thanks! I did installed Microsoft.VCRedist.2015 but still encountered this error. I guess I was missing the VS BuildTools, which is installed by the second 'winget' cmd. After both of them were installed, building wheels of InsightFace was successful.
I was getting a similar problem in Ubuntu 20.04:
gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
error: command '/usr/bin/gcc' 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: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
The solution was to install g++ with sudo apt-get install g++
For people using Amazon SageMaker, I ran this line (credit to ChatGPT):
apt-get install build-essential libssl-dev libffi-dev python3-dev -y
On linux/ubuntu you need to have python dev installed, for example sudo apt install python3.10-dev, replace <<3.10 >> with your python version
TY!!!!
On linux/ubuntu you need to have python dev installed, for example sudo apt install python3.10-dev, replace <<3.10 >> with your python version
mark
I encountered the same problem with ComfyUI_windows_portable, the solution is: Find or install a version of python that is the same as ComfyUI_windows_portable, copy the include and libs folders in the xxx\Python3xx\ directory to the xx\ComfyUI_windows_portable\python_embeded directory; Then install insightface ComfyUI_windows_portable>.\python_embeded\python.exe -m pip install -U insightface
我在ComfyUI_windows_portable 遇到同样的问题,解决方法是: 找一个 或者安装一个与ComfyUI_windows_portable相同的版本的python, 复制xxx\Python3xx\目录里的include和libs文件夹到xx\ComfyUI_windows_portable\python_embeded目录中; 然后安装insightface: ComfyUI_windows_portable>.\python_embeded\python.exe -m pip install -U insightface
The posted error says Microsoft Visual C++ 14.0 required. Whereas in my wsl2/Ubuntu needed install Clang.
sudo apt install clang
I finally found the fix.. on windows well you need Microsoft Visual C++ 14.0 no issue but on linux it was painful to fix,
the commands to fix in Linux:
conda install gxx_linux-64 conda install gcc_linux-64
even if u have gc++ or gcc on linux conda needs this command for some reason
why you guys still use conda .... its take way more hdd space and do the same thing as venv python packed ...
Using anconda fixed the problem
I think this might help https://github.com/Gourieff/sd-webui-reactor#insightfacebuild
This solved it! Thanks!
For anyone that is still struggling on Mac M1/M2, what worked for me is changing compiler to clang
as follows:
brew install llvm libomp
Then find your bin directory with
find /opt/homebrew/ -name clang
And then use the path found before installing:
export CC=/opt/homebrew//Cellar/llvm/<YOUR_LLVM_VERSION>/bin/clang
That's all it takes.
cd /var/lib/dpkg
mv info info.bak
mkdir info
apt-get update
apt-get install build-essential libssl-dev libffi-dev python3-lib2to3 python3-distutils python3-dev -y
This method works for me
Go to https://github.com/Gourieff/Assets/tree/main/InsightFace to download the same InsightFace file as the Python version In this repository, you can see multiple versions of the insight face file. Choose the appropriate files to download based on your Python version. For example, if your Python version is 3.10, download the corresponding file
Go to the COMFYUI Root Directory: open the terminal, enter the command line to go to the COMFYUI root directory We enter the following command python.exe -m pip install insightface Uninstall if previous installation fails: python.exe -m pip uninstall insightface Then update the Pip: python.exe -m pip install -U pip Reinstall InsightFace from the WHL file: python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl Once the installation is complete, we'll have the insightface file in our Python folder
On Ubuntu 20.04, having to manually set python3.10
as my Python executable, I found this helpful:
Important Note: python3-dev/devel does not automatically cover all minor versions of python3. E.g If you are using python 3.11 you may need to install python3.11-dev / python3.11-devel.
Tried everything, but still no luck (Apple M2 Max, Mac OS 14.5):
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
╰─> [479 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build/lib.macosx-13.5-arm64-cpython-310/insightface
copying insightface/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/app
copying insightface/app/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/app
copying insightface/app/mask_renderer.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/app
copying insightface/app/common.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/app
copying insightface/app/face_analysis.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/app
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/download.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/filesystem.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/transform.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/storage.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/face_align.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
copying insightface/utils/constant.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/utils
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/landmark.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/inswapper.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/arcface_onnx.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/retinaface.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/attribute.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_zoo.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/scrfd.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_store.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/model_zoo
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/commands
copying insightface/commands/insightface_cli.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/commands
copying insightface/commands/rec_add_mask_param.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/commands
copying insightface/commands/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/commands
copying insightface/commands/model_download.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/commands
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/data
copying insightface/data/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data
copying insightface/data/rec_builder.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data
copying insightface/data/pickle_object.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data
copying insightface/data/image.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty
copying insightface/thirdparty/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d
copying insightface/thirdparty/face3d/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/__init__.py -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.macosx-13.5-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/55/j9c5n_194ss2lr8rgxzs4k600000gn/T/pip-build-env-hyphmyrz/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:218: _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/55/j9c5n_194ss2lr8rgxzs4k600000gn/T/pip-build-env-hyphmyrz/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:218: _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/55/j9c5n_194ss2lr8rgxzs4k600000gn/T/pip-build-env-hyphmyrz/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:218: _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-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/mask_black.jpg -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/mask_blue.jpg -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/mask_green.jpg -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/mask_white.jpg -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
copying insightface/data/images/t1.jpg -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/images
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/data/objects
copying insightface/data/objects/meanshape_68.pkl -> build/lib.macosx-13.5-arm64-cpython-310/insightface/data/objects
creating build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.macosx-13.5-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-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Iinsightface/thirdparty/face3d/mesh/cython -I/private/var/folders/55/j9c5n_194ss2lr8rgxzs4k600000gn/T/pip-build-env-hyphmyrz/overlay/lib/python3.10/site-packages/numpy/_core/include -I/Users/cihat/code/Forge/stable-diffusion-webui-forge/venv/include -I/Users/cihat/.pyenv/versions/3.10.13/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.macosx-13.5-arm64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:4:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
unsigned char *_base;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null
unsigned char *_base;
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null
unsigned char *_base;
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable _read) (void *, char *, int);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert '_Nullable' if the pointer may be null
int (* _Nullable _read) (void *, char *, int);
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable _read) (void *, char *, int);
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable _read) (void *, char *, int);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: note: insert '_Nullable' if the pointer may be null
int (* _Nullable _read) (void *, char *, int);
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable _read) (void *, char *, int);
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: note: insert '_Nullable' if the pointer may be null
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: note: insert '_Nonnull' if the pointer should never be null
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable _write)(void *, const char *, int);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: note: insert '_Nullable' if the pointer may be null
int (* _Nullable _write)(void *, const char *, int);
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable _write)(void *, const char *, int);
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable _write)(void *, const char *, int);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: note: insert '_Nullable' if the pointer may be null
int (* _Nullable _write)(void *, const char *, int);
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable _write)(void *, const char *, int);
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
struct __sFILEX *_extra; /* additions to FILE to not break ABI */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: note: insert '_Nullable' if the pointer may be null
struct __sFILEX *_extra; /* additions to FILE to not break ABI */
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: note: insert '_Nonnull' if the pointer should never be null
struct __sFILEX *_extra; /* additions to FILE to not break ABI */
^
_Nonnull
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:4:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:69:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
extern FILE *__stdinp;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:69:13: note: insert '_Nullable' if the pointer may be null
extern FILE *__stdinp;
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:69:13: note: insert '_Nonnull' if the pointer should never be null
extern FILE *__stdinp;
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable)(void *, const char *, int),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:41: note: insert '_Nullable' if the pointer may be null
int (* _Nullable)(void *, const char *, int),
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:41: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable)(void *, const char *, int),
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:55: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable)(void *, const char *, int),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:55: note: insert '_Nullable' if the pointer may be null
int (* _Nullable)(void *, const char *, int),
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:388:55: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable)(void *, const char *, int),
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:389:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
fpos_t (* _Nullable)(void *, fpos_t, int),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:389:44: note: insert '_Nullable' if the pointer may be null
fpos_t (* _Nullable)(void *, fpos_t, int),
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:389:44: note: insert '_Nonnull' if the pointer should never be null
fpos_t (* _Nullable)(void *, fpos_t, int),
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:390:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
int (* _Nullable)(void *));
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:390:41: note: insert '_Nullable' if the pointer may be null
int (* _Nullable)(void *));
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:390:41: note: insert '_Nonnull' if the pointer should never be null
int (* _Nullable)(void *));
^
_Nonnull
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:386:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
FILE *funopen(const void *,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:386:6: note: insert '_Nullable' if the pointer may be null
FILE *funopen(const void *,
^
_Nullable
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:386:6: note: insert '_Nonnull' if the pointer should never be null
FILE *funopen(const void *,
^
_Nonnull
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:321:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:588:17: error: expected unqualified-id
return std::isnan(__lcpp_x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:166:5: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:608:17: error: expected unqualified-id
return std::isinf(__lcpp_x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:161:5: note: expanded from macro 'isinf'
( sizeof(x) == sizeof(float) ? __inline_isinff((float)(x)) \
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:724:15: error: no template named 'numeric_limits'
return -numeric_limits<_Tp>::infinity();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:728:14: error: no template named 'numeric_limits'
return numeric_limits<_Tp>::infinity();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:731:14: error: no template named 'numeric_limits'
return numeric_limits<_Tp>::quiet_NaN();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:735:19: error: no template named 'numeric_limits'
while (__x >= numeric_limits<_Tp>::radix) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:736:14: error: no template named 'numeric_limits'
__x /= numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:759:14: error: no template named 'numeric_limits'
return numeric_limits<_Tp>::quiet_NaN();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:763:16: error: no template named 'numeric_limits'
__mult = numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:768:17: error: no template named 'numeric_limits'
__mult /= numeric_limits<_Tp>::radix;
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:425:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/add_pointer.h:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
~~^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:456:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: use of undeclared identifier 'nullptr_t'
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:508:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/algorithm:1751:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__algorithm/copy_move_common.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__string/constexpr_c_functions.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/new:99:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:132:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:132:6: note: target of using declaration
int abs(int) __pure2;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:354:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/algorithm:1751:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__algorithm/copy_move_common.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__string/constexpr_c_functions.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/new:399:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/exception:82:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__exception/exception_ptr.h:31:39: error: field has incomplete type 'exception_ptr'
_LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__exception/exception_ptr.h:26:33: note: definition of 'std::exception_ptr' is not complete until the closing '}'
class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__exception/exception_ptr.h:31:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
_LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
__attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
13 warnings and 20 errors 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)
Having spent a good deal of time on this, I'm at a loss. I am wondering if the following warning in the console output is related:
Visual Studio 2022 installation:
Python:
After multiple failed attempts to install via ComfyUI Manager, I opted to install insightface manually via pip:
Expected result:
Actual result: