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

ERROR: Failed building wheel for mmpycocotools #4859

Closed
johnenvpath opened this issue Mar 30, 2021 · 2 comments
Closed

ERROR: Failed building wheel for mmpycocotools #4859

johnenvpath opened this issue Mar 30, 2021 · 2 comments
Assignees

Comments

@johnenvpath
Copy link

Describe the bug
When I am trying to install mmdetection by command
pip install -v -e .

Reproduction

  1. What command or script did you run?
pip install -v -e .
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
    No

  2. What dataset did you use?

    • VOC2007
    • VOC2012
    • COCO2017

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.

fatal: not a git repository (or any of the parent directories): .git
sys.platform: linux
Python: 3.7.0 (default, Oct 9 2018, 10:31:47) [GCC 7.3.0]
CUDA available: True
GPU 0: GeForce GTX 1050
CUDA_HOME: /usr/local/cuda-11.1
NVCC: Build cuda_11.1.TC455_06.29190527_0
GCC: gcc (GCC) 10.2.0
PyTorch: 1.8.1+cu111
PyTorch compiling details: PyTorch built with:

  • GCC 7.3
  • C++ Version: 201402
  • Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
  • Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
  • OpenMP 201511 (a.k.a. OpenMP 4.5)
  • NNPACK is enabled
  • CPU capability usage: AVX2
  • CUDA Runtime 11.1
  • NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86
  • CuDNN 8.0.5
  • Magma 2.5.2
  • Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.9.1+cu111
OpenCV: 4.5.1
MMCV: 1.3.0
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 11.1
MMDetection: 2.10.0+

  1. You may add addition that may be helpful for locating the problem, such as
    • pip install torch-1.8.1+cu111-cp37-cp37m-linux_x86_64.whl
    • pip install mmcv_full-1.3.0-cp37-cp37m-manylinux1_x86_64.whl
    • pip install torchaudio-0.8.1-cp37-cp37m-linux_x86_64.whl
    • pip install torchvision-0.9.1+cu111-cp37-cp37m-linux_x86_64.whl
    • sudo pacman -Sy base-devel
    • export PATH=$PATH:/usr/local/cuda-11.1/bin
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.1/lib64

Error traceback
If applicable, paste the error trackback here.

Traceback (most recent call last):
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
    status = self.run(options, args)
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 400, in run
    pycompile=options.compile,
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 88, in install_given_reqs
    pycompile=pycompile,
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 830, in install
    six.reraise(*exc.parent)
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise
    raise value
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 76, in install
    cwd=unpacked_source_directory,
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 293, in runner
    spinner=spinner,
  File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 258, in call_subprocess
    raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-m476fvip/install-record.txt --single-version-externally-managed --compile --install-headers /home/jwz/miniconda3/envs/python37/include/python3.7m/mmpycocotools Check the logs for full command output.
Removed build tracker: '/tmp/pip-req-tracker-4z69aje4'
@johnenvpath
Copy link
Author

Using pip 21.0.1 from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip (python 3.7)
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-l4xhvy7w
Created temporary directory: /tmp/pip-req-tracker-4z69aje4
Initialized build tracking at /tmp/pip-req-tracker-4z69aje4
Created build tracker: /tmp/pip-req-tracker-4z69aje4
Entered build tracker: /tmp/pip-req-tracker-4z69aje4
Created temporary directory: /tmp/pip-install-hudb0czb
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Obtaining file:///home/jwz/%E6%96%87%E6%A1%A3/mmdetection-master
Added file:///home/jwz/%E6%96%87%E6%A1%A3/mmdetection-master to build tracker '/tmp/pip-req-tracker-4z69aje4'
Running setup.py (path:/home/jwz/文档/mmdetection-master/setup.py) egg_info for package from file:///home/jwz/%E6%96%87%E6%A1%A3/mmdetection-master
Created temporary directory: /tmp/pip-pip-egg-info-b17yxrcj
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info
writing /tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-b17yxrcj/mmdet.egg-info/SOURCES.txt'
Source in /home/jwz/文档/mmdetection-master has version 2.10.0, which satisfies requirement mmdet==2.10.0 from file:///home/jwz/%E6%96%87%E6%A1%A3/mmdetection-master
Removed mmdet==2.10.0 from file:///home/jwz/%E6%96%87%E6%A1%A3/mmdetection-master from build tracker '/tmp/pip-req-tracker-4z69aje4'
Requirement already satisfied: matplotlib in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmdet==2.10.0) (3.4.0)
1 location(s) to search for versions of mmpycocotools:

  • https://mirrors.aliyun.com/pypi/simple/mmpycocotools/
    Fetching project page and analyzing links: https://mirrors.aliyun.com/pypi/simple/mmpycocotools/
    Getting page https://mirrors.aliyun.com/pypi/simple/mmpycocotools/
    Found index url https://mirrors.aliyun.com/pypi/simple/
    Looking up "https://mirrors.aliyun.com/pypi/simple/mmpycocotools/" in the cache
    Request header has "max_age" as 0, cache bypassed
    Starting new HTTPS connection (1): mirrors.aliyun.com:443
    https://mirrors.aliyun.com:443 "GET /pypi/simple/mmpycocotools/ HTTP/1.1" 304 0
    Found link https://mirrors.aliyun.com/pypi/packages/b1/c9/2e8b5141bd4beb47b4481135b009d5b51e46c9c1e2654292e94f997b0e93/mmpycocotools-12.0.2.tar.gz#sha256=bd50bd3322c7d91c709c077c733c2e77d7beb18c1210d23004155b098c39894e (from https://mirrors.aliyun.com/pypi/simple/mmpycocotools/), version: 12.0.2
    Found link https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz#sha256=b26f0b3504fad0be8fdb19f3cfa34d86f4ef97694bb403d172f9e7827781b539 (from https://mirrors.aliyun.com/pypi/simple/mmpycocotools/), version: 12.0.3
    Found link https://mirrors.aliyun.com/pypi/packages/70/5a/28a77e60709f30fb0f094bcd692a8ce4772c5240f69c5f08eba87d1bfffe/mmpycocotools-12.0.tar.gz#sha256=56dc1e6685f3d5dcb46e818f75bff2c775f7263d3755607b09d942f34eb255b0 (from https://mirrors.aliyun.com/pypi/simple/mmpycocotools/), version: 12.0
    Given no hashes to check 3 links for project 'mmpycocotools': discarding no candidates
    Collecting mmpycocotools
    Created temporary directory: /tmp/pip-unpack-f5or8rrl
    Looking up "https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz" in the cache
    Current age based on date: 460
    Freshness lifetime from max-age: 300
    https://mirrors.aliyun.com:443 "GET /pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz HTTP/1.1" 304 0
    Using cached https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz (23 kB)
    Added mmpycocotools from https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz#sha256=b26f0b3504fad0be8fdb19f3cfa34d86f4ef97694bb403d172f9e7827781b539 (from mmdet==2.10.0) to build tracker '/tmp/pip-req-tracker-4z69aje4'
    Running setup.py (path:/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py) egg_info for package mmpycocotools
    Created temporary directory: /tmp/pip-pip-egg-info-d71wls32
    Running command python setup.py egg_info
    running egg_info
    creating /tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info
    writing /tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/dependency_links.txt
    writing requirements to /tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/requires.txt
    writing top-level names to /tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/top_level.txt
    writing manifest file '/tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/SOURCES.txt'
    reading manifest file '/tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file '/tmp/pip-pip-egg-info-d71wls32/mmpycocotools.egg-info/SOURCES.txt'
    Source in /tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7 has version 12.0.3, which satisfies requirement mmpycocotools from https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz#sha256=b26f0b3504fad0be8fdb19f3cfa34d86f4ef97694bb403d172f9e7827781b539 (from mmdet==2.10.0)
    Removed mmpycocotools from https://mirrors.aliyun.com/pypi/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz#sha256=b26f0b3504fad0be8fdb19f3cfa34d86f4ef97694bb403d172f9e7827781b539 (from mmdet==2.10.0) from build tracker '/tmp/pip-req-tracker-4z69aje4'
    Requirement already satisfied: numpy in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmdet==2.10.0) (1.20.2)
    Requirement already satisfied: six in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmdet==2.10.0) (1.15.0)
    Requirement already satisfied: terminaltables in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmdet==2.10.0) (3.1.0)
    Requirement already satisfied: python-dateutil>=2.7 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from matplotlib->mmdet==2.10.0) (2.8.1)
    Requirement already satisfied: pillow>=6.2.0 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from matplotlib->mmdet==2.10.0) (8.1.2)
    Requirement already satisfied: cycler>=0.10 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from matplotlib->mmdet==2.10.0) (0.10.0)
    Requirement already satisfied: pyparsing>=2.2.1 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from matplotlib->mmdet==2.10.0) (2.4.7)
    Requirement already satisfied: kiwisolver>=1.0.1 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from matplotlib->mmdet==2.10.0) (1.3.1)
    Requirement already satisfied: setuptools>=18.0 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmpycocotools->mmdet==2.10.0) (52.0.0.post20210125)
    Requirement already satisfied: cython>=0.27.3 in /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages (from mmpycocotools->mmdet==2.10.0) (0.29.22)
    Created temporary directory: /tmp/pip-unpack-ow6q463y
    Building wheels for collected packages: mmpycocotools
    Created temporary directory: /tmp/pip-wheel-hq26copd
    Building wheel for mmpycocotools (setup.py) ... Destination directory: /tmp/pip-wheel-hq26copd
    Running command /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; file='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-hq26copd
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/mask.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/coco.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/init.py -> build/lib.linux-x86_64-3.7/pycocotools
    running build_ext
    cythoning pycocotools/_mask.pyx to pycocotools/_mask.c
    /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/pycocotools/_mask.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
    building 'pycocotools._mask' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/common
    creating build/temp.linux-x86_64-3.7/pycocotools
    gcc -pthread -B /home/jwz/miniconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include -Icommon -I/home/jwz/miniconda3/envs/python37/include/python3.7m -c common/maskApi.c -o build/temp.linux-x86_64-3.7/common/maskApi.o
    common/maskApi.c: 在函数‘rleDecode’中:
    common/maskApi.c:46:7: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    46 | for( k=0; k<R[i].cnts[j]; k++ ) (M++)=v; v=!v; }}
    | ^~~
    common/maskApi.c:46:49: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    46 | for( k=0; k<R[i].cnts[j]; k++ ) (M++)=v; v=!v; }}
    | ^
    common/maskApi.c: 在函数‘rleFrPoly’中:
    common/maskApi.c:166:3: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    166 | for(j=0; j<k; j++) x[j]=(int)(scale
    xy[j
    2+0]+.5); x[k]=x[0];
    | ^~~
    common/maskApi.c:166:54: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    166 | for(j=0; j<k; j++) x[j]=(int)(scalexy[j2+0]+.5); x[k]=x[0];
    | ^
    common/maskApi.c:167:3: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    167 | for(j=0; j<k; j++) y[j]=(int)(scalexy[j2+1]+.5); y[k]=y[0];
    | ^~~
    common/maskApi.c:167:54: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    167 | for(j=0; j<k; j++) y[j]=(int)(scalexy[j2+1]+.5); y[k]=y[0];
    | ^
    common/maskApi.c: 在函数‘rleToString’中:
    common/maskApi.c:212:7: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
    212 | if(more) c |= 0x20; c+=48; s[p++]=c;
    | ^~
    common/maskApi.c:212:27: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    212 | if(more) c |= 0x20; c+=48; s[p++]=c;
    | ^
    common/maskApi.c: 在函数‘rleFrString’中:
    common/maskApi.c:220:3: 警告:this ‘while’ clause does not guard... [-Wmisleading-indentation]
    220 | while( s[m] ) m++; cnts=malloc(sizeof(uint)m); m=0;
    | ^~~~~
    common/maskApi.c:220:22: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
    220 | while( s[m] ) m++; cnts=malloc(sizeof(uint)m); m=0;
    | ^~~~
    common/maskApi.c:228:5: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
    228 | if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
    | ^~
    common/maskApi.c:228:34: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    228 | if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
    | ^~~~
    gcc -pthread -B /home/jwz/miniconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include -Icommon -I/home/jwz/miniconda3/envs/python37/include/python3.7m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.7/pycocotools/_mask.o
    In file included from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944,
    from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
    from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
    from pycocotools/_mask.c:610:
    /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: 警告:#warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
    17 | #warning "Using deprecated NumPy API, disable it with "
    | ^~~~~~~
    gcc -pthread -shared -B /home/jwz/miniconda3/envs/python37/compiler_compat -L/home/jwz/miniconda3/envs/python37/lib -Wl,-rpath=/home/jwz/miniconda3/envs/python37/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/common/maskApi.o build/temp.linux-x86_64-3.7/pycocotools/_mask.o -o build/lib.linux-x86_64-3.7/pycocotools/_mask.cpython-37m-x86_64-linux-gnu.so
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    build/temp.linux-x86_64-3.7/common/maskApi.o: file not recognized: file format not recognized
    collect2: 错误:ld 返回 1
    error: command 'gcc' failed with exit status 1
    error
    ERROR: Failed building wheel for mmpycocotools
    Running setup.py clean for mmpycocotools
    Running command /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; file='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' clean --all
    running clean
    removing 'build/temp.linux-x86_64-3.7' (and everything under it)
    removing 'build/lib.linux-x86_64-3.7' (and everything under it)
    'build/bdist.linux-x86_64' does not exist -- can't clean it
    'build/scripts-3.7' does not exist -- can't clean it
    removing 'build'
    Failed to build mmpycocotools
    Installing collected packages: mmpycocotools, mmdet
    Created temporary directory: /tmp/pip-record-m476fvip
    Running command /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; file='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-m476fvip/install-record.txt --single-version-externally-managed --compile --install-headers /home/jwz/miniconda3/envs/python37/include/python3.7m/mmpycocotools
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/mask.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/coco.py -> build/lib.linux-x86_64-3.7/pycocotools
    copying pycocotools/init.py -> build/lib.linux-x86_64-3.7/pycocotools
    running build_ext
    skipping 'pycocotools/_mask.c' Cython extension (up-to-date)
    building 'pycocotools._mask' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/common
    creating build/temp.linux-x86_64-3.7/pycocotools
    gcc -pthread -B /home/jwz/miniconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include -Icommon -I/home/jwz/miniconda3/envs/python37/include/python3.7m -c common/maskApi.c -o build/temp.linux-x86_64-3.7/common/maskApi.o
    common/maskApi.c: 在函数‘rleDecode’中:
    common/maskApi.c:46:7: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    46 | for( k=0; k<R[i].cnts[j]; k++ ) (M++)=v; v=!v; }}
    | ^~~
    common/maskApi.c:46:49: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    46 | for( k=0; k<R[i].cnts[j]; k++ ) (M++)=v; v=!v; }}
    | ^
    common/maskApi.c: 在函数‘rleFrPoly’中:
    common/maskApi.c:166:3: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    166 | for(j=0; j<k; j++) x[j]=(int)(scale
    xy[j
    2+0]+.5); x[k]=x[0];
    | ^~~
    common/maskApi.c:166:54: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    166 | for(j=0; j<k; j++) x[j]=(int)(scale
    xy[j
    2+0]+.5); x[k]=x[0];
    | ^
    common/maskApi.c:167:3: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
    167 | for(j=0; j<k; j++) y[j]=(int)(scalexy[j2+1]+.5); y[k]=y[0];
    | ^~~
    common/maskApi.c:167:54: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    167 | for(j=0; j<k; j++) y[j]=(int)(scalexy[j2+1]+.5); y[k]=y[0];
    | ^
    common/maskApi.c: 在函数‘rleToString’中:
    common/maskApi.c:212:7: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
    212 | if(more) c |= 0x20; c+=48; s[p++]=c;
    | ^~
    common/maskApi.c:212:27: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    212 | if(more) c |= 0x20; c+=48; s[p++]=c;
    | ^
    common/maskApi.c: 在函数‘rleFrString’中:
    common/maskApi.c:220:3: 警告:this ‘while’ clause does not guard... [-Wmisleading-indentation]
    220 | while( s[m] ) m++; cnts=malloc(sizeof(uint)*m); m=0;
    | ^~~~~
    common/maskApi.c:220:22: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
    220 | while( s[m] ) m++; cnts=malloc(sizeof(uint)*m); m=0;
    | ^~~~
    common/maskApi.c:228:5: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
    228 | if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
    | ^~
    common/maskApi.c:228:34: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    228 | if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
    | ^~~~
    gcc -pthread -B /home/jwz/miniconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include -Icommon -I/home/jwz/miniconda3/envs/python37/include/python3.7m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.7/pycocotools/_mask.o
    In file included from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944,
    from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
    from /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
    from pycocotools/_mask.c:610:
    /home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: 警告:#warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
    17 | #warning "Using deprecated NumPy API, disable it with "
    | ^~~~~~~
    gcc -pthread -shared -B /home/jwz/miniconda3/envs/python37/compiler_compat -L/home/jwz/miniconda3/envs/python37/lib -Wl,-rpath=/home/jwz/miniconda3/envs/python37/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/common/maskApi.o build/temp.linux-x86_64-3.7/pycocotools/_mask.o -o build/lib.linux-x86_64-3.7/pycocotools/_mask.cpython-37m-x86_64-linux-gnu.so
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    /home/jwz/miniconda3/envs/python37/compiler_compat/ld: build/temp.linux-x86_64-3.7/common/maskApi.o: unable to initialize decompress status for section .debug_info
    build/temp.linux-x86_64-3.7/common/maskApi.o: file not recognized: file format not recognized
    collect2: 错误:ld 返回 1
    error: command 'gcc' failed with exit status 1
    Running setup.py install for mmpycocotools ... error
    ERROR: Command errored out with exit status 1: /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; file='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-m476fvip/install-record.txt --single-version-externally-managed --compile --install-headers /home/jwz/miniconda3/envs/python37/include/python3.7m/mmpycocotools Check the logs for full command output.
    Exception information:
    Traceback (most recent call last):
    File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 826, in install
    req_description=str(self.req),
    File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 86, in install
    raise LegacyInstallFailure
    pip._internal.operations.install.legacy.LegacyInstallFailure

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
status = self.run(options, args)
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
return func(self, options, args)
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 400, in run
pycompile=options.compile,
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/init.py", line 88, in install_given_reqs
pycompile=pycompile,
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 830, in install
six.reraise(*exc.parent)
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise
raise value
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 76, in install
cwd=unpacked_source_directory,
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 293, in runner
spinner=spinner,
File "/home/jwz/miniconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 258, in call_subprocess
raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/jwz/miniconda3/envs/python37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"'; file='"'"'/tmp/pip-install-hudb0czb/mmpycocotools_8cab81de593040168987fa891fc45df7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-m476fvip/install-record.txt --single-version-externally-managed --compile --install-headers /home/jwz/miniconda3/envs/python37/include/python3.7m/mmpycocotools Check the logs for full command output.
Removed build tracker: '/tmp/pip-req-tracker-4z69aje4'

@hhaAndroid
Copy link
Collaborator

Please use the latest version, because there is no need to install mmpycocotools

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

2 participants