deepinsight / deepinsight/insightface

ERROR: Failed building wheel for mmpycocotools

Open
#2,429 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

when install mmdetection following the installation in scrfd, i got an error said
gcc -pthread -B /home/xum/miniconda3/envs/scrfd/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/xum/miniconda3/envs/scrfd/lib/python3.8/site-packages/numpy/core/include -Icommon -I/home/xum/miniconda3/envs/scrfd/include/python3.8 -c ../common/maskApi.c -o build/temp.linux-x86_64-3.8/../common/maskApi.o
gcc: error: ../common/maskApi.c: No such file or directory
error: command '/usr/bin/gcc' failed with exit code 1
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/xum/miniconda3/envs/scrfd/bin/python -u -c '
exec(compile('"'"''"'"''"'"'
# This is -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-install-x98s9tl4/mmpycocotools_154ec26e5362482392520c3ddeacde99/setup.py'"'"',), "", "exec"))' bdist_wheel -d /tmp/pip-wheel-z4c0nh8p
cwd: /tmp/pip-install-x98s9tl4/mmpycocotools_154ec26e5362482392520c3ddeacde99/
Building wheel for mmpycocotools (setup.py) ... error
ERROR: Failed building wheel for mmpycocotools
Running setup.py clean for mmpycocotools
Running command python setup.py clean
running clean
removing 'build/temp.linux-x86_64-3.8' (and everything under it)
removing 'build/lib.linux-x86_64-3.8' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
Failed to build mmpycocotools
ERROR: Could not build wheels for mmpycocotools, which is required to install pyproject.toml-based projects

my system is ubuntu20.04+gcc9.4.0 and pytorch version is pytorch1.8.0+cu111

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.