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

Installation takes forever #1386

Closed
FrancescoSaverioZuppichini opened this issue Oct 4, 2021 · 61 comments
Closed

Installation takes forever #1386

FrancescoSaverioZuppichini opened this issue Oct 4, 2021 · 61 comments

Comments

@FrancescoSaverioZuppichini

Hi guys,

I am running

 pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.9.0/index.html

On a quite powerful 8 core machine and the installation takes forever, more than 30m. The process is stuck at Building wheel for mmcv-full (setup.py) ... |

I am wondering if this is okay.

Thank you :)

Francesco

@FrancescoSaverioZuppichini FrancescoSaverioZuppichini changed the title Installation takes forver Installation takes forever Oct 4, 2021
@zhouzaida
Copy link
Collaborator

hi @FrancescoSaverioZuppichini . It seems like that mmcv is being compiled, but this is not actually the expected behavior. The expected behavior of this command should be to install pre-compiled packages. Here are the pre-compiled packages provided with mmcv.

CUDA torch 1.9 torch 1.8 torch 1.7 torch 1.6 torch 1.5 torch 1.4 torch 1.3
11.1
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
11.0
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html
10.2
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.7.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.6.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.5.0/index.html
10.1
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.8.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.5.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.4.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.3.0/index.html
9.2
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu92/torch1.7.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu92/torch1.6.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu92/torch1.5.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu92/torch1.4.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu92/torch1.3.0/index.html
cpu
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.9.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.8.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.7.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.6.0/index.html
install
 pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.5.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.4.0/index.html
install
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.3.0/index.html

@FrancescoSaverioZuppichini
Copy link
Author

Hi @zhouzaida thank you for your reply. Running

pip install mmcv-full==1.3 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

Following the above table doesn't prevent the building process

@zhouzaida
Copy link
Collaborator

Please provide your Python version, PyTorch version, and CUDA version?

@psafarov
Copy link

psafarov commented Oct 9, 2021

I observe the same problem locally and in the demo on colab.

It gets stuck on:

Building wheels for collected packages: mmcv-full

@zhouzaida
Copy link
Collaborator

Hi @zhouzaida thank you for your reply. Running

pip install mmcv-full==1.3 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

Following the above table doesn't prevent the building process

hi, Could you provide the full log here?

@zhouzaida
Copy link
Collaborator

zhouzaida commented Oct 10, 2021

What is your python version? If it is 3.9, I am sorry to say that we have not provided a pre-built package for python3.9 so mmcv-full will be compiled when installing it. Usually, it will take 10 minutes, if it takes too long, then there should be a problem somewhere.

@zhouzaida
Copy link
Collaborator

I observe the same problem locally and in the demo on colab.

It gets stuck on:

Building wheels for collected packages: mmcv-full

Thanks for your feedback, I will check it.

@FrancescoSaverioZuppichini
Copy link
Author

Hi @zhouzaida yeah it is python 3.9, mystery solved :)

sys.platform: linux
Python: 3.9.5 (default, Jun 4 2021, 12:28:51) [GCC 7.5.0]
CUDA available: True
GPU 0,1,2: GeForce GTX 1080 Ti
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.2.r11.2/compiler.29373293_0
GCC: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
PyTorch: 1.8.1+cu102
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 10.2
  • 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
  • CuDNN 7.6.5
  • Magma 2.5.2
  • Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.2, CUDNN_VERSION=7.6.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+cu102
OpenCV: 4.5.3
MMCV: 1.2.7
MMCV Compiler: GCC 9.3
MMCV CUDA Compiler: 11.2
MMDetection: 2.10.0+b634e7a

@zhouzaida
Copy link
Collaborator

We have not provided a pre-built package for python3.9 and you can build it from source. Please refer to https://mmcv.readthedocs.io/en/latest/get_started/build.html

@FrancescoSaverioZuppichini
Copy link
Author

Thank you!

@zhouzaida
Copy link
Collaborator

In the latest version (v1.3.15), we provide pre-compiled packages for the Python 3.9 environment.

@RS00001
Copy link

RS00001 commented Feb 1, 2022

Hi team, please help, we are facing the same issue. It is taking forever and still the installation is not complete. Waited more than 4 hours. The MMCV installation that we are using is:
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html

Our Cuda version is 10.2.300 and the Torch version is 1.10.0
Device Jetson Nano 4gb
We've used the Torch and TorchVision from the Nvidia source

Tried restart and also flashed new SD card thinking - just in case - but to no avail. Please help!

update: my one also process is stuck at Building wheel for mmcv-full (setup.py) ... |

As you can see from the above link, I went for a pre-compiled version but it still seems to be building the wheel

@zhouzaida
Copy link
Collaborator

Hi team, please help, we are facing the same issue. It is taking forever and still the installation is not complete. Waited more than 4 hours. The MMCV installation that we are using is: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html

Our Cuda version is 10.2.300 and the Torch version is 1.10.0 Device Jetson Nano 4gb We've used the Torch and TorchVision from the Nvidia source

Tried restart and also flashed new SD card thinking - just in case - but to no avail. Please help!

update: my one also process is stuck at Building wheel for mmcv-full (setup.py) ... |

As you can see from the above link, I went for a pre-compiled version but it still seems to be building the wheel

Hi, thanks for your report. Could you provide the compilation log?

@RS00001
Copy link

RS00001 commented Feb 1, 2022

Hi @zhouzaida, herewith i have included the log:

(mmdeploy) nano4g@nano4g-desktop:$ pip3 install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html
Collecting mmcv-full
Downloading https://files.pythonhosted.org/packages/95/b4/658adc792283f5bdb4113de920241dc69c7f40aba35ca7164df860a26522/mmcv-full-1.4.4.tar.gz (420kB)
.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)
100% |████████████████████████████████| 49.4MB 10kB/s
Collecting addict (from mmcv-full)
██████████████████| 49.4MB 10kB/s
Collecting addict (from mmcv-full)
Downloading https://files.pythonhosted.org/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl
Collecting numpy (from mmcv-full)
Collecting packaging (from mmcv-full)
Downloading https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 2.6MB/s
Collecting pyyaml (from mmcv-full)
Downloading https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz (124kB)
100% |████████████████████████████████| 133kB 3.3MB/s
Collecting yapf (from mmcv-full)
Downloading https://files.pythonhosted.org/packages/47/88/843c2e68f18a5879b4fbf37cb99fbabe1ffc4343b2e63191c8462235c008/yapf-0.32.0-py2.py3-non(mmdeploy) nano4g@nano4g-desktop:
$ pip3 install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html
Collecting mmcv-full
Downloading https://files.pythonhosted.org/packages/95/b4/658adc792283f5bdb4113de920241dc69c7f40aba35ca7164df860a26522/mmcv-full-1.4.4.tar.gz (420kB)
100% |████████████████████████████████| 430kB 1.1MB/s
Collecting Pillow (from mmcv-full)
Downloading https://files.pythonhosted e-any.whl (190kB)
100% |████████████████████████████████| 194kB 2.2MB/s
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->mmcv-full)
Downloading https://files.pythonhosted.org/packages/80/c1/23fd82ad3121656b585351aba6c19761926bb0db2ebed9e4ff09a43a3fcc/pyparsing-3.0.7-py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 3.7MB/s
Building wheels for collected packages: mmcv-full, Pillow, pyyaml
Running setup.py bdist_wheel for mmcv-full ... \

It gets stuck at "Running setup.py.........."

@zhouzaida
Copy link
Collaborator

Hi @zhouzaida, herewith i have included the log:

(mmdeploy) nano4g@nano4g-desktop:$ pip3 install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html Collecting mmcv-full Downloading https://files.pythonhosted.org/packages/95/b4/658adc792283f5bdb4113de920241dc69c7f40aba35ca7164df860a26522/mmcv-full-1.4.4.tar.gz (420kB) .org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB) 100% |████████████████████████████████| 49.4MB 10kB/s Collecting addict (from mmcv-full) ██████████████████| 49.4MB 10kB/s Collecting addict (from mmcv-full) Downloading https://files.pythonhosted.org/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl Collecting numpy (from mmcv-full) Collecting packaging (from mmcv-full) Downloading https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40kB) 100% |████████████████████████████████| 40kB 2.6MB/s Collecting pyyaml (from mmcv-full) Downloading https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz (124kB) 100% |████████████████████████████████| 133kB 3.3MB/s Collecting yapf (from mmcv-full) Downloading https://files.pythonhosted.org/packages/47/88/843c2e68f18a5879b4fbf37cb99fbabe1ffc4343b2e63191c8462235c008/yapf-0.32.0-py2.py3-non(mmdeploy) nano4g@nano4g-desktop:$ pip3 install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html Collecting mmcv-full Downloading https://files.pythonhosted.org/packages/95/b4/658adc792283f5bdb4113de920241dc69c7f40aba35ca7164df860a26522/mmcv-full-1.4.4.tar.gz (420kB) 100% |████████████████████████████████| 430kB 1.1MB/s Collecting Pillow (from mmcv-full) Downloading https://files.pythonhosted e-any.whl (190kB) 100% |████████████████████████████████| 194kB 2.2MB/s Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->mmcv-full) Downloading https://files.pythonhosted.org/packages/80/c1/23fd82ad3121656b585351aba6c19761926bb0db2ebed9e4ff09a43a3fcc/pyparsing-3.0.7-py3-none-any.whl (98kB) 100% |████████████████████████████████| 102kB 3.7MB/s Building wheels for collected packages: mmcv-full, Pillow, pyyaml Running setup.py bdist_wheel for mmcv-full ... \

It gets stuck at "Running setup.py.........."

It seems like the program was compiling the mmcv-full which is not an expected behavior. What is your python version?

@RS00001
Copy link

RS00001 commented Feb 1, 2022

It is Python 3.6.

We are using 3.6 because pre-compiled Torch (1.10.0) and Torchvision (0.11.1) versions for Nvidia Jetson are working nicely with python3.6 only. The v3.7 is not playing nicely with the torch.

Setup base don this: https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048

P.s: Above setup link is also advised in the Jetson setup article in MMDeploy tutorial: https://github.com/open-mmlab/mmdeploy/blob/master/docs/en/tutorials/how_to_install_mmdeploy_on_jetsons.md

@zhouzaida
Copy link
Collaborator

Hi, you should build mmcv-full from source with the command MMCV_WITH_OPS=1 pip install -e .

@RS00001
Copy link

RS00001 commented Feb 1, 2022

Hi @zhouzaida thanks.

so does that mean that the pre-compiled versions are not suitable for jetson series?

@zhouzaida
Copy link
Collaborator

yet

@RS00001
Copy link

RS00001 commented Feb 1, 2022

@zhouzaida thanks for clarifying. i will give source build a go.

@RS00001
Copy link

RS00001 commented Feb 1, 2022

hi @zhouzaida - with source install I am getting following error:
"Pillow requires Python '>=3.7' but the running Python is 3.6.7"
Any suggestion for sorting it without updating the python?

@RS00001
Copy link

RS00001 commented Feb 1, 2022

After I replaced pip with pip3, somehow it did continue the process but then after a while it threw following error:

(mmdeploy) nano4g@nano4g-desktop:/mmcv$ MMCV_WITH_OPS=1 pip install -e .
Obtaining file:///home/nano4g/mmcv
Collecting addict (from mmcv-full==1.4.4)
Using cached https://files.pythonhosted.org/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl
Requirement already satisfied: numpy in /home/nano4g/.local/lib/python3.6/site-packages (from mmcv-full==1.4.4) (1.19.5)
Collecting packaging (from mmcv-full==1.4.4)
Using cached https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl
Requirement already satisfied: Pillow in /home/nano4g/.local/lib/python3.6/site-packages/Pillow-9.0.0-py3.6-linux-aarch64.egg (from mmcv-full==1.4.4) (9.0.0)
Pillow requires Python '>=3.7' but the running Python is 3.6.7
(mmdeploy) nano4g@nano4g-desktop:
/mmcv$ MMCV_WITH_OPS=1 pip3 install -e .
Obtaining file:///home/nano4g/mmcv
Collecting Pillow (from mmcv-full==1.4.4)
Using cached https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz
Collecting addict (from mmcv-full==1.4.4)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl
Collecting numpy (from mmcv-full==1.4.4)
Collecting packaging (from mmcv-full==1.4.4)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl
Collecting pyyaml (from mmcv-full==1.4.4)
Using cached https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz
Collecting yapf (from mmcv-full==1.4.4)
Using cached https://files.pythonhosted.org/packages/47/88/843c2e68f18a5879b4fbf37cb99fbabe1ffc4343b2e63191c8462235c008/yapf-0.32.0-py2.py3-none-any.whl
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->mmcv-full==1.4.4)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/80/c1/23fd82ad3121656b585351aba6c19761926bb0db2ebed9e4ff09a43a3fcc/pyparsing-3.0.7-py3-none-any.whl
Building wheels for collected packages: Pillow, pyyaml
Running setup.py bdist_wheel for Pillow ... done
Stored in directory: /home/nano4g/.cache/pip/wheels/a7/69/9a/bba9fca6782340f88dbc378893095722a663cbc618e58fe401
Running setup.py bdist_wheel for pyyaml ... done
Stored in directory: /home/nano4g/.cache/pip/wheels/95/84/67/ebeac632c63797cfbeb90128ca41073117721540dad526d213
Successfully built Pillow pyyaml
Installing collected packages: Pillow, addict, numpy, pyparsing, packaging, pyyaml, yapf, mmcv-full
Running setup.py develop for mmcv-full

Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/home/nano4g/mmcv/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --user --prefix=:
running develop
running egg_info
writing mmcv_full.egg-info/PKG-INFO
writing dependency_links to mmcv_full.egg-info/dependency_links.txt
writing requirements to mmcv_full.egg-info/requires.txt
writing top-level names to mmcv_full.egg-info/top_level.txt
reading manifest file 'mmcv_full.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
creating /home/nano4g/mmcv/build
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/cpu
creating /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/cuda
Emitting ninja build file /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (4) as the number of workers...
[1/102] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
FAILED: /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o
c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
[2/102] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/border_align.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/border_align.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/border_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
FAILED: /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/border_align.o
c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/border_align.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/border_align.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/border_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
[3/102] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/fused_bias_leakyrelu.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/fused_bias_leakyrelu.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/fused_bias_leakyrelu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
[4/102] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms_rotated.o.d -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/nms_rotated.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms_rotated.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/nano4g/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build
    env=env)
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/nano4g/mmcv/setup.py", line 390, in <module>
    zip_safe=False)
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 36, in run
    self.install_for_development()
  File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 136, in install_for_development
    self.run_command('build_ext')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/nano4g/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
    build_ext.build_extensions(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/nano4g/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/nano4g/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/nano4g/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

----------------------------------------

Command "/usr/bin/python3 -c "import setuptools, tokenize;file='/home/nano4g/mmcv/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" develop --no-deps --user --prefix=" failed with error code 1 in /home/nano4g/mmcv/

@zhouzaida
Copy link
Collaborator

c++: internal compiler error: Killed (program cc1plus)

It seems like the memory is not enough.

@RS00001
Copy link

RS00001 commented Feb 3, 2022

@zhouzaida - I added swap memory too. Today I did a fresh install, everything is now moving smoothly but getting stuck at MMCV install. It is giving the same error for both compiled version and install from source. I feel like i am almost there...could you please help me with understanding the following error. Solving this should get me through.........

(mmdeploy) nano4g@nano4g-desktop:$ cd mmcv
(mmdeploy) nano4g@nano4g-desktop:
/mmcv$ MMCV_WITH_OPS=1 pip install -e .
Obtaining file:///home/nano4g/mmcv
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (2.4.0)
Requirement already satisfied: numpy in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (1.19.4)
Requirement already satisfied: packaging in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (21.3)
Requirement already satisfied: Pillow in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (8.4.0)
Requirement already satisfied: pyyaml in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (6.0)
Requirement already satisfied: yapf in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (0.32.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from packaging->mmcv-full==1.4.4) (3.0.7)
Installing collected packages: mmcv-full
Running setup.py develop for mmcv-full
ERROR: Command errored out with exit status 1:
command: /home/nano4g/.conda/envs/mmdeploy/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nano4g/mmcv/setup.py'"'"'; file='"'"'/home/nano4g/mmcv/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/nano4g/mmcv/
Complete output (95 lines):
running develop
running egg_info
writing mmcv_full.egg-info/PKG-INFO
writing dependency_links to mmcv_full.egg-info/dependency_links.txt
writing requirements to mmcv_full.egg-info/requires.txt
writing top-level names to mmcv_full.egg-info/top_level.txt
reading manifest file 'mmcv_full.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSES.md'
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
Emitting ninja build file /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (4) as the number of workers...
/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
[1/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/assign_score_withk.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/assign_score_withk.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/assign_score_withk.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[2/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/min_area_polygons.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/min_area_polygons.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/min_area_polygons.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[3/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/rotated_feature_align.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/rotated_feature_align.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/rotated_feature_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[4/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
FAILED: /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o
c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
[5/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/gather_points.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/gather_points.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/gather_points.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[6/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/carafe_naive.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/carafe_naive.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/carafe_naive.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[7/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/nms.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build
env=env)
File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/nano4g/mmcv/setup.py", line 390, in <module>
    zip_safe=False)
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 114, in install_for_development
    self.run_command('build_ext')
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
    build_ext.build_extensions(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------

ERROR: Command errored out with exit status 1: /home/nano4g/.conda/envs/mmdeploy/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nano4g/mmcv/setup.py'"'"'; file='"'"'/home/nano4g/mmcv/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

@zhouzaida
Copy link
Collaborator

Please @grimoire have a look.

@Thevakumar-Luheerathan
Copy link

@zhouzaida - I added swap memory too. Today I did a fresh install, everything is now moving smoothly but getting stuck at MMCV install. It is giving the same error for both compiled version and install from source. I feel like i am almost there...could you please help me with understanding the following error. Solving this should get me through.........

(mmdeploy) nano4g@nano4g-desktop:$ cd mmcv (mmdeploy) nano4g@nano4g-desktop:/mmcv$ MMCV_WITH_OPS=1 pip install -e . Obtaining file:///home/nano4g/mmcv Preparing metadata (setup.py) ... done Requirement already satisfied: addict in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (2.4.0) Requirement already satisfied: numpy in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (1.19.4) Requirement already satisfied: packaging in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (21.3) Requirement already satisfied: Pillow in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (8.4.0) Requirement already satisfied: pyyaml in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (6.0) Requirement already satisfied: yapf in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from mmcv-full==1.4.4) (0.32.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages (from packaging->mmcv-full==1.4.4) (3.0.7) Installing collected packages: mmcv-full Running setup.py develop for mmcv-full ERROR: Command errored out with exit status 1: command: /home/nano4g/.conda/envs/mmdeploy/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nano4g/mmcv/setup.py'"'"'; file='"'"'/home/nano4g/mmcv/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps cwd: /home/nano4g/mmcv/ Complete output (95 lines): running develop running egg_info writing mmcv_full.egg-info/PKG-INFO writing dependency_links to mmcv_full.egg-info/dependency_links.txt writing requirements to mmcv_full.egg-info/requires.txt writing top-level names to mmcv_full.egg-info/top_level.txt reading manifest file 'mmcv_full.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'LICENSES.md' writing manifest file 'mmcv_full.egg-info/SOURCES.txt' running build_ext building 'mmcv._ext' extension Emitting ninja build file /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/build.ninja... Compiling objects... Using envvar MAX_JOBS (4) as the number of workers... /home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. EasyInstallDeprecationWarning, /home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, [1/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/assign_score_withk.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/assign_score_withk.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/assign_score_withk.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [2/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/min_area_polygons.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/min_area_polygons.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/min_area_polygons.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [3/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/rotated_feature_align.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/rotated_feature_align.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/rotated_feature_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [4/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 FAILED: /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/pybind.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/pybind.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-7/README.Bugs for instructions. [5/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/gather_points.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/gather_points.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/gather_points.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [6/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/carafe_naive.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/carafe_naive.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/carafe_naive.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [7/97] c++ -MMD -MF /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms.o.d -pthread -B /home/nano4g/.conda/envs/mmdeploy/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/nano4g/mmcv/mmcv/ops/csrc/common -I/home/nano4g/mmcv/mmcv/ops/csrc/common/cuda -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/TH -I/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/nano4g/.conda/envs/mmdeploy/include/python3.6m -c -c /home/nano4g/mmcv/mmcv/ops/csrc/pytorch/nms.cpp -o /home/nano4g/mmcv/build/temp.linux-aarch64-3.6/mmcv/ops/csrc/pytorch/nms.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build env=env) File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/nano4g/mmcv/setup.py", line 390, in <module>
    zip_safe=False)
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 114, in install_for_development
    self.run_command('build_ext')
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
    build_ext.build_extensions(self)
  File "/home/nano4g/.local/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/nano4g/.local/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/nano4g/.conda/envs/mmdeploy/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------

ERROR: Command errored out with exit status 1: /home/nano4g/.conda/envs/mmdeploy/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nano4g/mmcv/setup.py'"'"'; file='"'"'/home/nano4g/mmcv/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Hi I got similar issue as yours on Jetson nano. Did you managed to install mmcv on Jetson nano??

@den-run-ai
Copy link

den-run-ai commented Apr 6, 2023

you need to downgrade to pytorch 1.13, pytorch 2.0 has been released, but many libraries don't support it yet, hence source build is triggered by mmlab packages (instead of installing binaries).

@jarredou
Copy link

jarredou commented Apr 6, 2023

Hi @jarredou , we provide pre-build mmcv-full packages for many PyTorch and CUDA versions. You can install it by openmim.

pip install openmim
mim install mmcv-full

This IS the code that fails.

you need to downgrade to pytorch 1.13, pytorch 2.0 has been released, but many libraries don't support it yet, hence source build is triggered by mmlab packages (instead of installing binaries).

I'll try that next time ! Thank you !

@MroutsideturnAF
Copy link

MroutsideturnAF commented Apr 10, 2023

pip install openmim
mim install mmcv-full

That worked for me!
It does not work for for mmcv-full==1.3.18
But it works for mmcv==1.4.0 and mmcv==1.7.1

Windows
Python:3.8.13
Pytorch: 1.9
cpu only

@jarredou
Copy link

jarredou commented Apr 10, 2023

you need to downgrade to pytorch 1.13, pytorch 2.0 has been released, but many libraries don't support it yet, hence source build is triggered by mmlab packages (instead of installing binaries).

It doesn't seem to fix the issue on Colab. Pytorch & depencies downgrading takes times, and then still "Building wheels for collected packages: mmcv-full" still takes forever to finnish, runtime was deleted before it ends.

@MroutsideturnAF
Copy link

@jarredou This installation worked in colab fo me. Have you tried? #1386 (comment)

@jsomeara
Copy link

@jarredou This installation worked in colab fo me. Have you tried? #1386 (comment)

Which version did you use? There is nothing on that table for the CUDA versions that are used in colab.

@DanielOrDany
Copy link

Python 3.8 works for me pip install mmcv==1.7.1

@MroutsideturnAF
Copy link

@jarredou This installation worked in colab fo me. Have you tried? #1386 (comment)

Which version did you use? There is nothing on that table for the CUDA versions that are used in colab.

I used this intstallation: !pip install torch==1.9.0+cu102 torchvision==0.10.0+cu102 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

@xpat
Copy link

xpat commented May 17, 2023

I've tried several times to get this installed. For this latest attempt I decided to download the most recent image 3.10. I forgot that I had fairly good luck earlier changing mmcv-full==1.7.0 to mmcv-full=1.7.1. I may even have tried 1.13.0. Normally I run out of memory. I'm on a 64GB Chromebook. Here's my latest error message:

 => => #   note: This error originates from a subprocess, and is likely not a problem with pip.                                                             
 => => #   ERROR: Failed building wheel for mmcv-full                                                                                                        
 => => #   Running setup.py clean for mmcv-full                                                                                                              
 => => # Failed to build mmcv-full                                                                                                                           
 => => # Installing collected packages: addict, tomli, Pillow, opencv-python, yapf, mmcv-full                                                                
 => => #   Running setup.py install for mmcv-full: started                                                                                                      
 => => #   Running setup.py install for mmcv-full: still running...                                                                                         
 => => #   Running setup.py install for mmcv-full: still running...                                                                                         
 => => #   Running setup.py install for mmcv-full: still running...                                                                                         
 => => #   Running setup.py install for mmcv-full: still running...                         

To recover space this next time, I'm going to try some commands that I'm only now learning about: https://docs.docker.com/desktop/faqs/linuxfaqs/#why-does-docker-desktop-for-linux-run-a-vm

Space is only freed when images are deleted. Space is not freed automatically when files are deleted inside running containers. To trigger a space reclamation at any point, run the command:

$ docker run --privileged --pid=host docker/desktop-reclaim-space

@lvt1693
Copy link

lvt1693 commented May 25, 2023

I tried following the instruction here and worked
https://mmcv.readthedocs.io/en/latest/get_started/installation.html

for me, I have pytorch 2.0 and c 11.8, so:
pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html

@Terencedu
Copy link

I tried following the instruction here and worked

https://mmcv.readthedocs.io/en/latest/get_started/installation.html
for me, I have pytorch 2.0 and c 11.8, so: pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html

thank you so much!

I am using google Colab with cuda118, your "mmcv==2.0.0" solve my question.

@legel
Copy link

legel commented Nov 3, 2023

Honestly the 2.0 mmcv removed a bunch of core packages, and could introduce more problems than you need...
#2216

I just decided to live with the super long pip install doing a custom build, but at least with awareness that the build is working correctly, e.g. via

pip install mmcv-full==1.5.0 --verbose

(1.5.0 is what I needed to install https://github.com/facebookresearch/dinov2/tree/main but your ideal version may vary)

@legel
Copy link

legel commented Nov 3, 2023

(and in the time it took me to write the above comment, the build finished)

@APRao-JNU
Copy link

Please provide your Python version, PyTorch version, and CUDA version?

Python3 version==3.11.5 , PyTorch version==2.1.1+cu121 and CUDA version==12.3

please help me fixe for this errors

@LarryStewart2022
Copy link

LarryStewart2022 commented Feb 14, 2024

pip install mmcv==1.7.1 - Worked for me as well. A year later and this is still an issue?

It would be nice if the following worked.
pip install torch wheel -q
pip install -e .

@deo-nikita
Copy link

My problem was that my torch version was 2.2, and mmcv doesn't have prebuilt wheels for it, only 2.1, 2.0. And so it tried to build package from source, and failed very badly

@haleemasadiakhan
Copy link

I'm facing the same issue on Colab, can some one guide how to solve it for Colab? I left it running for over an hour but it was still stuck at:
Building wheels for collected packages: mmcv

@haleemasadiakhan
Copy link

did you make any changes to run it for Colab? mine is still stuck at it. #1386 (comment)

@vintel38
Copy link

vintel38 commented Apr 6, 2024

Solution is just above 😉 with #1386 (comment) @haleemasadiakhan

!pip install openmim
!mim install mmengine
!pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html

Worked pretty well today on my Google Colab Pro session running A100 GPU

import torch
print(torch.__version__)

2.2.1+cu121
!nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0
import mmcv
print(mmcv.__version__)

2.0.0

@gone2808
Copy link

gone2808 commented Apr 15, 2024

Do anyone have any solution to recompile mmcv when built from source if not have enough ram + swap. In my case, when built mmcv from source take 24Gb Ram. I have to extend swap to install it.

Here is my enviroment take by mmcv.utuls,env.collect_env

OrderedDict([('sys.platform', 'linux'), ('Python', '3.8.13 (default, Oct 21 2022, 23:50:54) [GCC 11.2.0]'), ('CUDA available', True), ('MUSA available', False), ('numpy_random_seed', 2147483648), ('GPU 0', 'NVIDIA GeForce GTX 1050 Ti'), ('CUDA_HOME', '/usr/local/cuda'), ('NVCC', 'Cuda compilation tools, release 12.3, V12.3.52'), ('GCC', 'gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0'), ('PyTorch', '2.2.2+cu121'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 9.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.3.2 (Git Hash 2dc95a2ad0841e29db8b22fbccaf3e5da7992b01)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 12.1\n - NVCC architecture flags: -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;-gencode;arch=compute_90,code=sm_90\n - CuDNN 8.9.2\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=12.1, CUDNN_VERSION=8.9.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -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=2.2.2, 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=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, \n'), ('TorchVision', '0.17.2+cu121'), ('OpenCV', '4.9.0'), ('MMEngine', '0.10.3'), ('MMCV', '2.1.0'), ('MMCV Compiler', 'GCC 11.4'), ('MMCV CUDA Compiler', '12.3')])

@JasonLi1909
Copy link

Solution is just above 😉 with #1386 (comment) @haleemasadiakhan

!pip install openmim
!mim install mmengine
!pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html

Worked pretty well today on my Google Colab Pro session running A100 GPU

import torch
print(torch.__version__)

2.2.1+cu121
!nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0
import mmcv
print(mmcv.__version__)

2.0.0

For those that want to run the BasicVSR++ demo, this will not work because the demo requires a mmcv version greater than or equal to 1.3.13 but less than or equal to 1.6.0.

@David-Biggs
Copy link

I am experiencing the same issue.

These are the dependencies and versions I need:

  • mmsegmentation: 0.27.0
  • mmcv-full: 1.5.0

Using mmcv==2.0.0 does prevent the hanging experienced with mmcv-full however, 2.0.0 is incomparable with mmsegmentation==0.27.0.

How can I prevent the hanging with installing mmcv-full==1.5.0?

@jhj0517
Copy link

jhj0517 commented Jun 12, 2024

In my case,

pip install wheel==0.43.0
pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html

Solved my problem.

You should check compatible mmcv versions with your torch & OS here :

@AMacholl
Copy link

AMacholl commented Jun 29, 2024

I had similar problem with mmcv-full could not build wheel. bla bla bla. So when I had installed mmcv( not full), then mmcv-full returned error. I reinstalled windows and installed first mmcv_full-1.7.2 and everything started to work. After few tests later i installed normal mmcv 2.2.0, cos it was still needed.

@bgpantojar
Copy link

I had the same problem.

I managed to install mmcv two ways:

1 - pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html
2 - buidling from the source as https://mmcv.readthedocs.io/en/latest/get_started/build.html

Unfortunatelly when runing the demo:
python demo/image_demo.py demo/demo.png configs/pspnet/pspnet_r50-d8_4xb2-40k_cityscapes-512x1024.py pspnet_r50-d8_512x1024_40k_cityscapes_20200605_003338-2966598c.pth --device cuda:0 --out-file result.jpg

It shows AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4.

Then again, if I try to install the version 2.0.0rc4, with pip or mim, it takes forever the wheel building.

Runing on Windows 11, my cuda is 12.4 and my pytorch 2.4.0. I am guessing that my problems are related to these versions of cuda and pytorch.

Is there a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests