Skip to content

[Bug] Optional nodes NunchakuPulidApply and NunchakuPulidLoader import failed #380

@yhf1407

Description

@yhf1407

Checklist

Describe the Bug

Nunchaku version: 0.3.1
ComfyUI-nunchaku version: 0.3.1
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
Optional nodes NunchakuPulidApply and NunchakuPulidLoader import failed:
Traceback (most recent call last):
File "D:\anaconda3\envs\ceshi\Lib\site-packages\insightface_init_.py", line 8, in
import onnxruntime
File "D:\anaconda3\envs\ceshi\Lib\site-packages\onnxruntime_init_.py", line 61, in
raise import_capi_exception
File "D:\anaconda3\envs\ceshi\Lib\site-packages\onnxruntime_init_.py", line 24, in
from onnxruntime.capi._pybind_state import (
File "D:\anaconda3\envs\ceshi\Lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in
from .onnxruntime_pybind11_state import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing onnxruntime_pybind11_state: 动态链接库(DLL)初始化例程失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\cf\ComfyUI\custom_nodes\ComfyUI-nunchaku_init_.py", line 52, in
from .nodes.models.pulid import NunchakuPulidApply, NunchakuPulidLoader
File "D:\cf\ComfyUI\custom_nodes\ComfyUI-nunchaku\nodes\models\pulid.py", line 8, in
from nunchaku.pipeline.pipeline_flux_pulid import PuLIDPipeline
File "D:\anaconda3\envs\ceshi\Lib\site-packages\nunchaku\pipeline_init_.py", line 1, in
from .pipeline_flux_pulid import PuLIDFluxPipeline
File "D:\anaconda3\envs\ceshi\Lib\site-packages\nunchaku\pipeline\pipeline_flux_pulid.py", line 9, in
import insightface
File "D:\anaconda3\envs\ceshi\Lib\site-packages\insightface_init_.py", line 10, in
raise ImportError(
ImportError: Unable to import dependency onnxruntime.

Environment

pytorch version: 2.7.0+cu128
xformers version: 0.0.30
Enabled fp16 accumulation.
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 : cudaMallocAsync
Using xformers attention
Python version: 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)]
ComfyUI version: 0.3.44
ComfyUI frontend version: 1.23.4

Reproduction Steps

uu.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions