question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

“utils/spconv/spconv/geometry.h”: No such file or directory

See original GitHub issue

I use this command to install mmcv-full pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html and find this problem ./mmcv/ops/csrc/pytorch/cpu\sparse_indice.cpp(16): fatal error C1083: 无法打开包括文件: “utils/spconv/spconv/geometry.h”: No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 When I install in win10 and Linux both meet this problem. Thanks for replying!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
abhineet123commented, Mar 1, 2022

This seems to be caused by the new version 1.4.6 of mmcv so using an older version should fix it. This worked for me: pip install mmcv-full==1.3.9 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html Something a bit newer like 1.4.2 should work too.

0reactions
wangruohuicommented, Mar 3, 2022

Me on macOS too. I think the solution should be adding correcponding header files (spconv related ones for 3D detection) in MENIFEST.in, so that they can be included in the sdist package published to pypi.

Currently a workaround is to install MMCV from source, which is a git clone instead of a direct pip install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while installing fatal error: utils/spconv/spconv/geometry.h
Error while installing fatal error: utils/spconv/spconv/geometry.h: No such file or directory #7410. I'm doing a fresh installation of mmdetection. The steps ...
Read more >
Issues-open-mmlab/mmcv - PythonTechWorld - Python 博客
“utils/spconv/spconv/geometry.h”: No such file or directory. 888. I use this command to install mmcv-full pip install mmcv-full -f ...
Read more >
The mmrotate from open-mmlab - Coder Social Home
File "/home/ai/yumo/ship_det/mmrotate-main/train.py", line 171, in main ... fatal error: utils/spconv/spconv/geometry.h: No such file or directory
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found