MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.37k stars 240 forks source link

ImportError: DLL load failed while importing _C #77

Open tiandaoyuxi opened 8 months ago

tiandaoyuxi commented 8 months ago

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: 找不到 指定的模块。

laitianwen commented 8 months ago

Have you solved it? I have this problem too?

criskb commented 8 months ago

i have this aswell

MrForExample commented 8 months ago

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

crowtalons commented 7 months ago

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 commented 7 months ago

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.

Scharwunzel commented 6 months ago

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...

crowtalons commented 6 months ago

@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 😁

Scharwunzel commented 6 months ago

@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

Huajijunbilibili commented 2 months ago

Have you solved it? I have this problem too。

GPU-server commented 1 month ago

me too.