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

subprocess-exited-with-error #3123

Open
2 tasks done
LiuxinYLX opened this issue Jun 4, 2024 · 3 comments
Open
2 tasks done

subprocess-exited-with-error #3123

LiuxinYLX opened this issue Jun 4, 2024 · 3 comments

Comments

@LiuxinYLX
Copy link

Prerequisite

Environment

OrderedDict([('sys.platform', 'linux'), ('Python', '3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0]'), ('CUDA available', False), ('MUSA available', False), ('numpy_random_seed', 2147483648), ('GCC', 'x86_64-conda_cos6-linux-gnu-gcc (crosstool-NG 1.24.0.133_b0863d8_dirty) 7.5.0'), ('PyTorch', '2.3.0'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 9.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2023.1-Product Build 20230303 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.3.6 (Git Hash 86e6af5974177e513fd3fee58425e1063e7f1361)\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 - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, 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_NOCUPTI -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.3.0, USE_CUDA=0, USE_CUDNN=OFF, USE_CUSPARSELT=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, \n'), ('TorchVision', '0.18.0'), ('OpenCV', '4.10.0'), ('MMEngine', '0.10.4'), ('MMCV', '2.2.0'), ('MMCV Compiler', 'n/a'), ('MMCV CUDA Compiler', 'n/a')])

Reproduces the problem - code sample

At the fifth step to install mmcv from source :
pip install -e . -v

Reproduces the problem - command or script

git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
pip install -r requirements/optional.txt
nvcc --version
gcc --version
pip install -e . -v

Reproduces the problem - error message

I got the errors (cf. photo):
Capture d’écran du 2024-06-04 16-27-19

Additional information

I can not install mmcv neither on computers without GPU nor on computers with GPU. Do you have some ideas to help me resolve it, please?

@LiuxinYLX
Copy link
Author

LiuxinYLX commented Jun 4, 2024

Please TT
I checked the version of gcc, nvcc, pytorch, python et cuda. Really.

@DangChuong-DC
Copy link

@LiuxinYLX
It seems that you don't have setuptools in the working environment, try run command:

pip install setuptools

Then build again.

Also you should following this installation guide, and install from wheel, I personally think it is better.

@LiuxinYLX
Copy link
Author

@LiuxinYLX It seems that you don't have setuptools in the working environment, try run command:

pip install setuptools

Then build again.

Also you should following this installation guide, and install from wheel, I personally think it is better.

Firstly, thank you very much for your reply! :)
I have actually tried the pip install setuptools command. I have updated setuptool to the latest version (70.0.X I think), but it tells me that something is wrong with its dependencies and it prefers older versions of setuptool.

Also, I have followed the installation guide you provided a few weeks ago. Thank you very much for searching out this information for me. In the last few weeks I have successfully installed mmcv and mmdetection on a computer without a GPU, but not yet on a computer with a GPU. Maybe it's because I'm using a remote server...and I always have the trouble with its dependencies.

Anyway I will continue searching. Thanks a lot!

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