mmdetection3d
mmdetection3d copied to clipboard
[Bug] Installation errors: setuptools and torch
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] I have read the FAQ documentation but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (dev-1.x) or latest version (dev-1.0).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
1.x branch https://github.com/open-mmlab/mmdetection3d/tree/dev-1.x
Environment
Hi, Im trying to install mmdetection3d with the default tutorial, and the following environment: Torch 2.1 Cuda 12.1 python 3.9
And when I try to install the develop repository, I get an error involving setuptools, which at the end does not recognize torch (See log)
Reproduces the problem - code sample
pip install -v -e .
Reproduces the problem - command or script
pip install -v -e .
Reproduces the problem - error message
Using pip 23.3 from /home/rives/environments/openmm3d/lib/python3.9/site-packages/pip (python 3.9)
Obtaining file:///home/rives/esteban/mmdetection3d
Running command pip subprocess to install build dependencies
Collecting setuptools>=40.8.0
Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
Using cached setuptools-68.2.2-py3-none-any.whl (807 kB)
Using cached wheel-0.41.2-py3-none-any.whl (64 kB)
Installing collected packages: wheel, setuptools
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
openxlab 0.0.27 requires setuptools~=60.2.0, but you have setuptools 68.2.2 which is incompatible.
Successfully installed setuptools-68.2.2 wheel-0.41.2
WARNING: There was an error checking the latest version of pip.
Installing build dependencies ... done
Running command Checking if build backend supports build_editable
Checking if build backend supports build_editable ... done
Running command Getting requirements to build editable
Traceback (most recent call last):
File "/home/rives/environments/openmm3d/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. full command: /home/rives/environments/openmm3d/bin/python3.9 /home/rives/environments/openmm3d/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_editable /tmp/tmpcuwa92f8 cwd: /home/rives/esteban/mmdetection3d Getting requirements to build editable ... error error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Additional information
- Desired result: Installed mmdetection3d
- Doesnt apply
- Suspected cause: setuptools is automatically upgraded to 68 by pip install