You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after excute the ops :
python3.8 .dev_scripts/check_installation.py
here the errors:
Traceback (most recent call last):
File ".dev_scripts/check_installation.py", line 4, in
from mmcv.ops import box_iou_rotated
File "/mmcv/mmcv/ops/init.py", line 2, in
from .assign_score_withk import assign_score_withk
File "mmcv/mmcv/ops/assign_score_withk.py", line 5, in
ext_module = ext_loader.load_ext(
File "/mmcv/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
then i use the build command: also raise excepttion
MMCV_WITH_OPS=1 python -m pip install -e . -v
Prerequisite
Environment
CUDA 11.6 pytorch 1.13.1 mmcv 1.4.0
i follow the build tips:
https://mmcv.readthedocs.io/zh_CN/latest/get_started/build.html#mmcv-full%E3%80%82
i pull the code mmcv==1.4.0 git clone --recursive -b v1.4.0 https://github.com/open-mmlab/mmcv.git and build
i can't change use another cuda version and mmcv version, did cuda 11.6 can build mmcv 1.4.0 or mmcv 1.3.4 ? i try both but all failed
first:
python3.8 -m pip install -e . -v
User install by explicit request
Created temporary directory: /tmp/pip-ephem-wheel-cache-emhj_5ve
Created temporary directory: /tmp/pip-req-tracker-k1d757ic
Initialized build tracking at /tmp/pip-req-tracker-k1d757ic
Created build tracker: /tmp/pip-req-tracker-k1d757ic
Entered build tracker: /tmp/pip-req-tracker-k1d757ic
Created temporary directory: /tmp/pip-install-_9zqndht
Obtaining file:///mmcv
Added file:///mmcv to build tracker '/tmp/pip-req-tracker-k1d757ic'
Running setup.py (path:/mmcv/setup.py) egg_info for package from file:///mmcv
Running command python setup.py egg_info
running egg_info
writing mmcv.egg-info/PKG-INFO
writing dependency_links to mmcv.egg-info/dependency_links.txt
writing requirements to mmcv.egg-info/requires.txt
writing top-level names to mmcv.egg-info/top_level.txt
reading manifest file 'mmcv.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mmcv.egg-info/SOURCES.txt'
Source in /mmcv has version 1.4.0, which satisfies requirement mmcv==1.4.0 from file:///mmcv
Removed mmcv==1.4.0 from file:///mmcv from build tracker '/tmp/pip-req-tracker-k1d757ic'
Requirement already satisfied: Pillow in /home/xiexing/.local/lib/python3.8/site-packages (from mmcv==1.4.0) (8.4.0)
Requirement already satisfied: addict in /home/xiexing/.local/lib/python3.8/site-packages (from mmcv==1.4.0) (2.4.0)
Requirement already satisfied: numpy in /home/xiexing/.local/lib/python3.8/site-packages (from mmcv==1.4.0) (1.23.0)
Requirement already satisfied: packaging in /home/xiexing/.local/lib/python3.8/site-packages (from mmcv==1.4.0) (21.3)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from mmcv==1.4.0) (5.3.1)
Requirement already satisfied: yapf in /home/xiexing/.local/lib/python3.8/site-packages (from mmcv==1.4.0) (0.40.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/xiexing/.local/lib/python3.8/site-packages (from packaging->mmcv==1.4.0) (3.0.9)
Requirement already satisfied: importlib-metadata>=6.6.0 in /home/xiexing/.local/lib/python3.8/site-packages (from yapf->mmcv==1.4.0) (6.8.0)
Requirement already satisfied: tomli>=2.0.1 in /home/xiexing/.local/lib/python3.8/site-packages (from yapf->mmcv==1.4.0) (2.0.1)
Requirement already satisfied: platformdirs>=3.5.1 in /home/xiexing/.local/lib/python3.8/site-packages (from yapf->mmcv==1.4.0) (3.10.0)
Requirement already satisfied: zipp>=0.5 in /home/xiexing/.local/lib/python3.8/site-packages (from importlib-metadata>=6.6.0->yapf->mmcv==1.4.0) (3.8.1)
Installing collected packages: mmcv
Attempting uninstall: mmcv
Found existing installation: mmcv 1.4.0
Not sure how to uninstall: mmcv 1.4.0 - Check: /mmcv
Can't uninstall 'mmcv'. No files were found to uninstall.
Running setup.py develop for mmcv
Running command /usr/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/mmcv/setup.py'"'"'; file='"'"'/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.egg-info/PKG-INFO
writing dependency_links to mmcv.egg-info/dependency_links.txt
writing requirements to mmcv.egg-info/requires.txt
writing top-level names to mmcv.egg-info/top_level.txt
reading manifest file 'mmcv.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mmcv.egg-info/SOURCES.txt'
running build_ext
Creating /home/xiexing/.local/lib/python3.8/site-packages/mmcv.egg-link (link to .)
Adding mmcv 1.4.0 to easy-install.pth file
Successfully installed mmcv
Cleaning up...
Removed build tracker: '/tmp/pip-req-tracker-k1d757ic'
after excute the ops :
python3.8 .dev_scripts/check_installation.py
here the errors:
Traceback (most recent call last):
File ".dev_scripts/check_installation.py", line 4, in
from mmcv.ops import box_iou_rotated
File "/mmcv/mmcv/ops/init.py", line 2, in
from .assign_score_withk import assign_score_withk
File "mmcv/mmcv/ops/assign_score_withk.py", line 5, in
ext_module = ext_loader.load_ext(
File "/mmcv/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
then i use the build command: also raise excepttion
MMCV_WITH_OPS=1 python -m pip install -e . -v
/mmcv/ops/csrc/pytorch/cuda/psamask_cuda.cu:5:10: fatal error: THC/THC.h: 没有那个文件或目录
@nizhib @tehkillerbee @DXist @tjsongzw
somebody here?
Additional information
No response
The text was updated successfully, but these errors were encountered: