SuLvXiangXin / zipnerf-pytorch

Unofficial implementation of ZipNeRF
Apache License 2.0
783 stars 85 forks source link

Error Building gridencoder Can't Open Input file #81

Open troybuckley opened 10 months ago

troybuckley commented 10 months ago

In trying to install the gridencoder with the following command: pip install ./gridencoder

I get the follower error(s):

(zipnerf) P:\04_Git\zipnerf-pytorch>pip install ./gridencoder
Processing p:\04_git\zipnerf-pytorch\gridencoder
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: gridencoder
  Building wheel for gridencoder (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building '_gridencoder' extension
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder\src
      Emitting ninja build file P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      1.11.1.git.kitware.jobserver-1
      creating P:\04_Git\zipnerf-pytorch\gridencoder\build\lib.win-amd64-cpython-39
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Troy\anaconda3\envs\zipnerf\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib\x64" /LIBPATH:C:\Users\Troy\anaconda3\envs\zipnerf\libs /LIBPATH:C:\Users\Troy\anaconda3\envs\zipnerf /LIBPATH:C:\Users\Troy\anaconda3\envs\zipnerf\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__gridencoder P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder\src\bindings.obj P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder\src\gridencoder.obj /OUT:build\lib.win-amd64-cpython-39\_gridencoder.cp39-win_amd64.pyd /IMPLIB:P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder\src\_gridencoder.cp39-win_amd64.lib
      LINK : fatal error LNK1181: cannot open input file 'P:\04_Git\zipnerf-pytorch\gridencoder\build\temp.win-amd64-cpython-39\Release\04_Git\zipnerf-pytorch\gridencoder\src\bindings.obj'
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gridencoder
  Running setup.py clean for gridencoder
Failed to build gridencoder
ERROR: Could not build wheels for gridencoder, which is required to install pyproject.toml-based projects

The files do NOT exist in the location it's looking for them...so is something not getting setup correctly before this part?

Any insight would be greatly appreciated! Thanks!