install fails
File "E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\torch\utils\cpp_extension.py", line 2104, in _run_ninja_build subprocess.run( File "E:\ComfyUI-K\ComfyUI.ext\Lib\subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\ComfyUI-K\ComfyUI\nodes.py", line 2037, in load_custom_node
module_spec.loader.exec_module(module)
File "
FAILED: nvdiffrast_plugin_gl.pyd
"E:\ComfyUI-K\ComfyUI.msvc\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64/link.exe" common.o glutil.o rasterize_gl.o torch_bindings_gl.o torch_rasterize_gl.o /nologo /DLL /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\nvdiffrast\torch..\lib /DEFAULTLIB:gdi32 /DEFAULTLIB:opengl32 /DEFAULTLIB:user32 /DEFAULTLIB:setgpu c10.lib c10_cuda.lib torch_cpu.lib torch_cuda.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\torch\lib torch_python.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\lib\x64" cudart.lib /out:nvdiffrast_plugin_gl.pyd
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
ninja: build stopped: subcommand failed.
Warn!: Cannot import E:\ComfyUI-K\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: Error building extension 'nvdiffrast_plugin_gl': [1/1] "E:\ComfyUI-K\ComfyUI.msvc\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64/link.exe" common.o glutil.o rasterize_gl.o torch_bindings_gl.o torch_rasterize_gl.o /nologo /DLL /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\nvdiffrast\torch..\lib /DEFAULTLIB:gdi32 /DEFAULTLIB:opengl32 /DEFAULTLIB:user32 /DEFAULTLIB:setgpu c10.lib c10_cuda.lib torch_cpu.lib torch_cuda.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\torch\lib torch_python.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\lib\x64" cudart.lib /out:nvdiffrast_plugin_gl.pyd
FAILED: nvdiffrast_plugin_gl.pyd
"E:\ComfyUI-K\ComfyUI.msvc\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64/link.exe" common.o glutil.o rasterize_gl.o torch_bindings_gl.o torch_rasterize_gl.o /nologo /DLL /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\nvdiffrast\torch..\lib /DEFAULTLIB:gdi32 /DEFAULTLIB:opengl32 /DEFAULTLIB:user32 /DEFAULTLIB:setgpu c10.lib c10_cuda.lib torch_cpu.lib torch_cuda.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\Lib\site-packages\torch\lib torch_python.lib /LIBPATH:E:\ComfyUI-K\ComfyUI.ext\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\lib\x64" cudart.lib /out:nvdiffrast_plugin_gl.pyd
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
ninja: build stopped: subcommand failed.
how to fix this?
Hi @Elminsst, sorry for the late responds There are a few nodes need runtime C++ compile You can check if your Visual Studio Build Tools 2022/2019 if installed correctly And double click C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat
Which of these options is correct?
Or do they all need to be installed?
Or I need to install this one?
@MrForExample I'm facing a similar issue on Linux. Any idea what the solution there might be?
Guide for vs tools installation: https://github.com/bycloudai/InstallVSBuildToolsWindows Try to install the new version of 3D-Pack