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

Error Building gridencoder Can't Open Input file #81

Open
troybuckley opened this issue Sep 2, 2023 · 0 comments
Open

Error Building gridencoder Can't Open Input file #81

troybuckley opened this issue Sep 2, 2023 · 0 comments

Comments

@troybuckley
Copy link

troybuckley commented Sep 2, 2023

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!

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