BEVFormer_tensorrt
BEVFormer_tensorrt copied to clipboard
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
system: Ubunru 18.04 GPU: RTX3090
When run command "docker build -t trt85 -f docker/Dockerfile .", it report an error as follows:
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/pycocotools
copying pycocotools/mask.py -> build/lib.linux-x86_64-cpython-38/pycocotools
copying pycocotools/__init__.py -> build/lib.linux-x86_64-cpython-38/pycocotools
copying pycocotools/coco.py -> build/lib.linux-x86_64-cpython-38/pycocotools
copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-cpython-38/pycocotools
running build_ext
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
building 'pycocotools._mask' extension
creating build/common
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/common
creating build/temp.linux-x86_64-cpython-38/pycocotools
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-9iyy4pe0/overlay/lib/python3.8/site-packages/numpy/core/include -I./common -I/usr/include/python3.8 -c ../common/maskApi.c -o build/temp.linux-x86_64-cpython-38/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
x86_64-linux-gnu-gcc: error: ../common/maskApi.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
/tmp/pip-build-env-9iyy4pe0/overlay/lib/python3.8/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-mtz3_ykl/pycocotools_93f0d1f8378c4525859402fc436a9324/pycocotools/_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
error: command '/usr/bin/x86_64-linux-gnu-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 pycocotools
Building wheel for pycuda (pyproject.toml): started
Building wheel for pycuda (pyproject.toml): still running...
Building wheel for pycuda (pyproject.toml): finished with status 'done'
Created wheel for pycuda: filename=pycuda-2022.1-cp38-cp38-linux_x86_64.whl size=658314 sha256=c51773d6214835b4b06acbc4d64c46ced466782e8ab7c3c8665424ab2bacf010
Stored in directory: /root/.cache/pip/wheels/e5/78/f4/4778efb57e62dd246ef9464459c010de3027bfe5f8b896803f
Building wheel for trimesh (setup.py): started
Building wheel for trimesh (setup.py): finished with status 'done'
Created wheel for trimesh: filename=trimesh-2.35.39-py3-none-any.whl size=324047 sha256=c64cb2b4f2be1fc7c12d6c45b0fa8bead0754b19a9337b2ef1fee06c2150bfd8
Stored in directory: /root/.cache/pip/wheels/14/49/a9/71d425a5f6015ab7fac75a98069f35f653456365313be55744
Building wheel for nvidia-pyindex (setup.py): started
Building wheel for nvidia-pyindex (setup.py): finished with status 'done'
Created wheel for nvidia-pyindex: filename=nvidia_pyindex-1.0.9-py3-none-any.whl size=8398 sha256=3ccd3c1bd218fe848d2cd507bb270fc52fe8ad514711365d367d9dc92629226e
Stored in directory: /root/.cache/pip/wheels/09/85/31/f11c024f33ab7900d272718a659347ca4c5b6479dfbe814d07
Building wheel for fire (setup.py): started
Building wheel for fire (setup.py): finished with status 'done'
Created wheel for fire: filename=fire-0.5.0-py2.py3-none-any.whl size=116936 sha256=eda089252d07b456c2f89e780c4930e039be35e0d5b8ba58c24fe1686ff270b1
Stored in directory: /root/.cache/pip/wheels/82/71/1b/c4c3a0d1c95fe96e69a55dacb72c5fc657b38985f15faa98fd
Successfully built pycuda trimesh nvidia-pyindex fire
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
The command '/bin/bash -c pip3 install -r /tmp/requirements.txt' returned a non-zero code: 1
You can refer to #78
You can refer to #78
i met the seem problem, and the docker tar package is already expired.
Try this one https://pan.baidu.com/s/1dPR6kvgpUoKow51870KNug?pwd=6xkq