I need this update to run newest Hunyuan 3d v2 (ComfyUI-Hunyuan3DWrapper ), per developer recommendation for the updated 3D Preview node.
Unzipped to directory, updated the cuda version in the !First_run bat. Ran the bat, one error:
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pytorch3d)
!FIRST_RUN error:
[27/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc --generate-dependencies-with-compile --dependency-output E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\build\temp.win-amd64-cpython-312\Release\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\pytorch3d\csrc\knn\knn.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\pytorch3d\csrc -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\include -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\include\torch\csrc\api\include -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\include\TH -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\include -IE:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\pytorch3d\csrc\knn\knn.cu -o E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\build\temp.win-amd64-cpython-312\Release\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\pytorch3d\csrc\knn\knn.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
knn.cu
tmpxft_0000a3bc_00000000-7_knn.cudafe1.cpp
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 2104, in _run_ninja_build
subprocess.run(
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\extras\pytorch3d\setup.py", line 144, in <module>
setup(
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
dist.run_commands()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\dist.py", line 983, in run_commands
self.run_command(cmd)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
cmd_obj.run()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\command\bdist_wheel.py", line 379, in run
self.run_command("build")
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
cmd_obj.run()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\command\build.py", line 136, in run
self.run_command(cmd_name)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
cmd_obj.run()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\command\build_ext.py", line 99, in run
_build_ext.run(self)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 365, in run
self.build_extensions()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 868, in build_extensions
build_ext.build_extensions(self)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 481, in build_extensions
self._build_extensions_serial()
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 507, in _build_extensions_serial
self.build_extension(ext)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\command\build_ext.py", line 264, in build_extension
_build_ext.build_extension(self, ext)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\Cython\Distutils\build_ext.py", line 135, in build_extension
super(build_ext, self).build_extension(ext)
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 562, in build_extension
objects = self.compiler.compile(
^^^^^^^^^^^^^^^^^^^^^^
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 840, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 1784, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 2120, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pytorch3d
Running setup.py clean for pytorch3d
Failed to build pytorch3d
[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\python.exe -m pip install --upgrade pip
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pytorch3d)
ONNX ERROR:
2025-01-31 17:12:46.6367316 [E:onnxruntime:Default, provider_bridge_ort.cc:1848 onnxruntime::TryGetProviderInfo_TensorRT] D:\a\_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1539 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "E:\SD\NVIDIA\ComfyUI\Trellis_Hunyuan_2\Comfy3D_WinPortable\python_standalone\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"
*************** EP Error ***************
EP Error D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:507 onnxruntime::python::RegisterTensorRTPluginsAsCustomOps Please install TensorRT libraries as mentioned in the GPU requirements page, make sure they're in the PATH or LD_LIBRARY_PATH, and that your GPU is supported.
when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']
Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying.
Windows 10, Nvidia 4080 Super, 2025/01/20 release
Please note that I installed the prior release ~3 weeks ago, and this error did not occur.
I need this update to run newest Hunyuan 3d v2 (ComfyUI-Hunyuan3DWrapper ), per developer recommendation for the updated 3D Preview node.
Unzipped to directory, updated the cuda version in the !First_run bat. Ran the bat, one error:
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pytorch3d)
What I have tried:
-- When trying to start up anyway, there are no errors on start up. However, when running CharacterGen getting new onnx runtime error referring to a D: drive that does not exist -- see bottom of post for this error.