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

fatal error C1083: Cannot open compiler generated file: '': Invalid argument #32

Open
wyhinton opened this issue Jul 15, 2022 · 0 comments

Comments

@wyhinton
Copy link

wyhinton commented Jul 15, 2022

I tried putting the whole log in, but it was too long.
Here's the ending error message:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1

with: python -m detectron2.utils.collect_env

sys.platform           win32
Python                 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)]
Numpy                  1.19.2
detectron2._C          failed to import
DETECTRON2_ENV_MODULE  <not set>
PyTorch                1.3.1
PyTorch Debug Build    False
torchvision            0.4.2
CUDA available         True
GPU 0                  NVIDIA GeForce RTX 2070
CUDA_HOME              C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
NVCC                   Not Available
Pillow                 8.3.1
cv2                    4.6.0

Researching around, some peole seem to get this issue when the build path is too long?
Notes;

  • a small amount of shortening the path did not fix it C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\dectron\detectron2\layers\csrc\box_iou_rotated->C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\d\detectron2\layers\csrc\box_iou_rotated
  • deleting all contents of box_iou_rotated_cpu.cppand building generates the same error
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

1 participant