Skip to content

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

Description

@bibinBEO

When tried with the 'pip install -e .' I'm getting the below error. I'm trying in L40S

`Downloading pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: memo, insightface, moviepy, antlr4-python3-runtime, julius, jaconv, jieba, openai-whisper, oss2, aliyun-python-sdk-core, crcmod
Building editable for memo (pyproject.toml) ... done
Created wheel for memo: filename=memo-0.1.0-0.editable-py3-none-any.whl size=13463 sha256=ec77b66025a588164434d138fc9aaae296c192db215293cae11432b01927c023
Stored in directory: /tmp/pip-ephem-wheel-cache-7eqp5yld/wheels/75/43/8d/c2b7b5f842a6c40f4c18e04885ea2e19949e1f9f59346c4657
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
╰─> [214 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-310/insightface
copying insightface/init.py -> build/lib.linux-x86_64-cpython-310/insightface
creating build/lib.linux-x86_64-cpython-310/insightface/app
copying insightface/app/init.py -> build/lib.linux-x86_64-cpython-310/insightface/app
copying insightface/app/common.py -> build/lib.linux-x86_64-cpython-310/insightface/app
copying insightface/app/face_analysis.py -> build/lib.linux-x86_64-cpython-310/insightface/app
copying insightface/app/mask_renderer.py -> build/lib.linux-x86_64-cpython-310/insightface/app
creating build/lib.linux-x86_64-cpython-310/insightface/commands
copying insightface/commands/init.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
copying insightface/commands/insightface_cli.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
copying insightface/commands/model_download.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
copying insightface/commands/rec_add_mask_param.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
creating build/lib.linux-x86_64-cpython-310/insightface/data
copying insightface/data/init.py -> build/lib.linux-x86_64-cpython-310/insightface/data
copying insightface/data/image.py -> build/lib.linux-x86_64-cpython-310/insightface/data
copying insightface/data/pickle_object.py -> build/lib.linux-x86_64-cpython-310/insightface/data
copying insightface/data/rec_builder.py -> build/lib.linux-x86_64-cpython-310/insightface/data
creating build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/init.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/arcface_onnx.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/attribute.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/inswapper.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/landmark.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_store.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/model_zoo.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/retinaface.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
copying insightface/model_zoo/scrfd.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty
copying insightface/thirdparty/init.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty
creating build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/init.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/constant.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/download.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/face_align.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/filesystem.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/storage.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
copying insightface/utils/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
copying insightface/thirdparty/face3d/init.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/init.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/init.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/init.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.linux-x86_64-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'
/tmp/pip-build-env-9y7fgxnc/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)
  /tmp/pip-build-env-9y7fgxnc/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)
  /tmp/pip-build-env-9y7fgxnc/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
  ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)
          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.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_black.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_blue.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_green.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/mask_white.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  copying insightface/data/images/t1.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
  creating build/lib.linux-x86_64-cpython-310/insightface/data/objects
  copying insightface/data/objects/meanshape_68.pkl -> build/lib.linux-x86_64-cpython-310/insightface/data/objects
  creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
  g++ -pthread -B /opt/conda/envs/memo/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/memo/include -fPIC -O2 -isystem /opt/conda/envs/memo/include -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-9y7fgxnc/overlay/lib/python3.10/site-packages/numpy/_core/include -I/opt/conda/envs/memo/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
  error: command 'g++' failed: No such file or directory
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for insightface
Building wheel for moviepy (setup.py) ... done
Created wheel for moviepy: filename=moviepy-1.0.3-py3-none-any.whl size=110711 sha256=f737806f4b2188bbd8c26adba91cd6f14a0ac9d44f5a769cfe6a5ec9b7f08020
Stored in directory: /root/.cache/pip/wheels/96/32/2d/e10123bd88fbfc02fed53cc18c80a171d3c87479ed845fa7c1
Building wheel for antlr4-python3-runtime (setup.py) ... done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144555 sha256=83a39cae0d4a0044f677aba385f6576bcf7afb70de091a4fb6c2ba2f41e73225
Stored in directory: /root/.cache/pip/wheels/12/93/dd/1f6a127edc45659556564c5730f6d4e300888f4bca2d4c5a88
Building wheel for julius (setup.py) ... done
Created wheel for julius: filename=julius-0.2.7-py3-none-any.whl size=21869 sha256=f6f2efad7d51e6b081cca8cd7969735a3b9b3ac11b0f9ba1410a80c20ebb702b
Stored in directory: /root/.cache/pip/wheels/b9/b2/05/f883527ffcb7f2ead5438a2c23439aa0c881eaa9a4c80256f4
Building wheel for jaconv (setup.py) ... done
Created wheel for jaconv: filename=jaconv-0.4.0-py3-none-any.whl size=18229 sha256=57b8470a92a042e1163222254a16e12f3d41377d9d678269f872ecc53ae092db
Stored in directory: /root/.cache/pip/wheels/20/95/99/94e8d7545125181756857f6b1fc085ed4e0811ad9be7321af7
Building wheel for jieba (setup.py) ... done
Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=034d459f77541e73d8e254b00b3c15feae657778249aafafd45523cb640cb889
Stored in directory: /root/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
Building wheel for openai-whisper (pyproject.toml) ... done
Created wheel for openai-whisper: filename=openai_whisper-20240930-py3-none-any.whl size=803373 sha256=d1cb8bcaa92a33922f99889f6ff08e707b435d6c492287e9cf1372e53d50ea11
Stored in directory: /root/.cache/pip/wheels/dd/4a/1f/d1c4bf3b9133c8168fe617ed979cab7b14fe381d059ffb9d83
Building wheel for oss2 (setup.py) ... done
Created wheel for oss2: filename=oss2-2.19.1-py3-none-any.whl size=123943 sha256=afcf446fd3cece611d88134144c46ad969ad868b8cd57001b275d2b50b5d9c67
Stored in directory: /root/.cache/pip/wheels/7d/1b/c6/dbf318597d350b50a94408a23a56b7349e706d61e0a06a6407
Building wheel for aliyun-python-sdk-core (setup.py) ... done
Created wheel for aliyun-python-sdk-core: filename=aliyun_python_sdk_core-2.16.0-py3-none-any.whl size=535316 sha256=8179ffe7407a5e895921d930a8fbcb486d4e1d1381a84007ad9c54bf27015be7
Stored in directory: /root/.cache/pip/wheels/35/11/5e/08e7cb4e03a3e83b4862edd12d1143c8d3936a3dd57a3ee46d
Building wheel for crcmod (setup.py) ... done
Created wheel for crcmod: filename=crcmod-1.7-py3-none-any.whl size=18835 sha256=e00f40d679672d0b83fd5769e9996c090c3268dda13063bcc73b04267b0574d8
Stored in directory: /root/.cache/pip/wheels/85/4c/07/72215c529bd59d67e3dac29711d7aba1b692f543c808ba9e86
Successfully built memo moviepy antlr4-python3-runtime julius jaconv jieba openai-whisper oss2 aliyun-python-sdk-core crcmod
Failed to build insightface
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)`

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions