-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fatal error: THC/THC.h: No such file or directory #1332
Comments
Please run |
Hi, I have the same problem and I run the mmdet3d/utils/collect_env.py and here is the result. sys.platform: linux
TorchVision: 0.12.0+cu113 Process finished with exit code 0 |
I tried but got the following error: I manually checked the versions: |
You should encounter problems during compiling ops possibly because of incompatible gcc or cuda. We recommend you use gcc 5.4 to re-install mmdet3d. Or you can try our latest version by |
I just solved this problem by reinstalling pytorch. I've tried to downgrade gcc, reinstall mmdet3d, had double checked mmcv version and did I referenced an answer on https://discuss.pytorch.org/t/question-about-thc-thc-h/147145. It seems that it would automatically install latest version if you follow the instructions on pytorch website and it could be inadaptable with the environment. I reinstalled pytorch to 1.6 and could successfully install mmdet3d. Thanks a lot anyway. |
Yes, it seems that the TH/THC include files have been removed in the latest pytorch version. mmdet3d still has to be adjusted to these changes, I guess. |
!!
!! The above exception was the direct cause of the following exception: Traceback (most recent call last): (openmmlab) C:\Users\GOKULNATH\Downloads\bevfusion(1)> |
Pytorch 1.11 has deleted the folder THC/THC.h. I faced the same issue, downgrading to pytorch 1.8 solved the issue. |
I had an issue about "TH/THC" paths not existing. I believe in newer Pytorch versions, the "TH/THC" subdirectories no longer exist. See an related issue (open-mmlab/mmdetection3d#1332 (comment))
Hi, is there a way to solve this issue with |
same too. |
just delete #include <THC/THC.h> and extern THCState *state; |
I got this error when I followed the installation instructions. Everything worked well until
pip install -v -e .
It eventually raised error:
Could someone please tell me how to solve this?
The text was updated successfully, but these errors were encountered: