ComfyUI-3D-Pack icon indicating copy to clipboard operation
ComfyUI-3D-Pack copied to clipboard

IMPORT FAILED: ComfyUI-3D-Pack

Open Young-Geo opened this issue 9 months ago • 3 comments

Warn!: Traceback (most recent call last): File "C:\RJ\AI\ComfyUI-aki-v1.4\nodes.py", line 2147, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "C:\RJ\AI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-3D-Pack_init.py", line 53, in module = importlib.import_module(f".{nodes_filename}", package=name) File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\importlib_init_.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\RJ\AI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 84, in from Unique3D.scripts.project_mesh import multiview_color_projection, multiview_color_projection_texture, get_cameras_list, get_orbit_cameras_list File "C:\RJ\AI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 99, in pix2faces_renderer = Pix2FacesRenderer() File "C:\RJ\AI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 71, in init self._glctx = dr.RasterizeGLContext(output_db=False, device=device) File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\nvdiffrast\torch\ops.py", line 228, in init self.cpp_wrapper = _get_plugin(gl=True).RasterizeGLStateWrapper(output_db, mode == 'automatic', cuda_device_idx) File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\nvdiffrast\torch\ops.py", line 125, in _get_plugin torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=common_opts+cc_opts, extra_cuda_cflags=common_opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False) File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\torch\utils\cpp_extension.py", line 1314, in load return _jit_compile( File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\torch\utils\cpp_extension.py", line 1721, in _jit_compile _write_ninja_file_and_build_library( File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\torch\utils\cpp_extension.py", line 1803, in _write_ninja_file_and_build_library verify_ninja_availability() File "C:\RJ\AI\ComfyUI-aki-v1.4\python_3.10.06\lib\site-packages\torch\utils\cpp_extension.py", line 1852, in verify_ninja_availability raise RuntimeError("Ninja is required to load C++ extensions") RuntimeError: Ninja is required to load C++ extensions

Young-Geo avatar Mar 28 '25 13:03 Young-Geo

What should I do? I've installed all the dependencies, but it still fails.

Young-Geo avatar Mar 28 '25 13:03 Young-Geo

No one seems to be able to get it working anymore, I think the project is dead. author has updates for 3 months and has not responded to issues

Clivey1234 avatar Apr 02 '25 13:04 Clivey1234

I'm having a similar issue on Linux: ## ComfyUI-Manager: EXECUTE => ['/usr/bin/python3', '-m', 'pip', 'install', 'cmake'] Defaulting to user installation because normal site-packages is not writeable [!] WARNING: Error parsing dependencies of safetensors: [Errno 2] No such file or directory: '/home/USERNAME/.local/lib/python3.10/site-packages/safetensors-0.4.2.dist-info/METADATA' [!] WARNING: Error parsing dependencies of libtorrent: Invalid version: '2.0.5-build-libtorrent-rasterbar-qrM5vM-libtorrent-rasterbar-2.0.5-bindings-python'

Sorry-Im-Stupid avatar May 03 '25 15:05 Sorry-Im-Stupid

install ninja please and try the latest 3d-pack version

DenisKochetov avatar Aug 07 '25 09:08 DenisKochetov