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

ImportError: DLL load failed while importing _C

Open tiandaoyuxi opened this issue 11 months ago • 10 comments

Traceback (most recent call last): File "D:\ComfyUI_NEW\ComfyUI\nodes.py", line 1887, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in call_with_frames_removed File "D:\ComfyUI_NEW\ComfyUI\custom_nodes\ComfyUI-3D-Pack_init.py", line 18, in module = importlib.import_module(f".{nodes_filename}", package=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "importlib_init_.py", line 126, in import_module File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in call_with_frames_removed File "D:\ComfyUI_NEW\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 28, in from .algorithms.main_3DGS import GaussianSplatting, GaussianSplattingCameraController, GSParams File "D:\ComfyUI_NEW\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS.py", line 12, in from .main_3DGS_renderer import GaussianSplattingRenderer File "D:\ComfyUI_NEW\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS_renderer.py", line 24, in from diff_gaussian_rasterization import ( File "D:\ComfyUI_NEW\python_embeded\Lib\site-packages\diff_gaussian_rasterization_init.py", line 15, in from . import _C ImportError: DLL load failed while importing _C: 找不到指定的模块。

Cannot import D:\ComfyUI_NEW\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: DLL load failed while importing _C: 找不到 指定的模块。

tiandaoyuxi avatar Mar 06 '24 02:03 tiandaoyuxi

Have you solved it? I have this problem too?

laitianwen avatar Mar 08 '24 16:03 laitianwen

i have this aswell

criskb avatar Mar 08 '24 20:03 criskb

Hi, may I ask you which method did you use to install this tool? (Embed env with pre-build wheels or Miniconda), Also where and how did you download this package? Because it should be ComfyUI-3D-Pack_init_.py instead of ComfyUI-3D-Pack_init.py

MrForExample avatar Mar 09 '24 09:03 MrForExample

same here. embed env with wheels. I have correct init.py filename but the same exact error:

Traceback (most recent call last): File "S:\Stable Diffusion\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1889, 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 "S:\Stable Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack_init.py", line 28, in module = importlib.import_module(f".{nodes_filename}", package=name) File "importlib_init_.py", line 126, in import_module 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 "S:\Stable Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 33, in from .algorithms.main_3DGS import GaussianSplatting, GaussianSplattingCameraController, GSParams File "S:\Stable Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS.py", line 12, in from .main_3DGS_renderer import GaussianSplattingRenderer File "S:\Stable Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS_renderer.py", line 24, in from diff_gaussian_rasterization import ( File "S:\Stable Diffusion\ComfyUI_windows_portable\python_embeded\lib\site-packages\diff_gaussian_rasterization_init.py", line 15, in from . import _C ImportError: DLL load failed while importing _C: The specified module could not be found.

crowtalons avatar Apr 07 '24 07:04 crowtalons

okay turns out I'm a dumbasss and did not have VS build tools. downloaded those, re-installed the addon and it works. hope maybe that helps someone else as well.

crowtalons avatar Apr 07 '24 08:04 crowtalons

Hi crowtalons, which Visual Studio tool did you install that made the difference? I have the same error message and checked my VS and couldn't find any build that was missing...

Scharwunzel avatar May 18 '24 00:05 Scharwunzel

@Scharwunzel it was the one mentioned on this project's page: https://visualstudio.microsoft.com/downloads/?q=build+tools I downloaded the community version (as mentioned, installed with Workloads: Desktop development with C++), I don't recall the exact settings I selected when installing, but if I figured it out, you should be fine 😁

crowtalons avatar May 18 '24 01:05 crowtalons

@crowtalons, thank you very much for the quick answer. I already had VS on my computer before Stable Diffusion or comfyui, and C++ was already installed. I also updated everything and looked through the individual builds. So that can't be the cause of the error for me. I'll open a new thread about this, I don't know what else to do. Kind regards

Scharwunzel avatar May 18 '24 02:05 Scharwunzel