vinavfx / ComfyUI-for-Nuke

API to be able to use ComfyUI nodes within nuke, only using the ComfyUI server
GNU General Public License v3.0
194 stars 17 forks source link

Nuke 15 : error interpreting this pugin #12

Closed DerickYau closed 2 months ago

DerickYau commented 2 months ago

Nuke versions: Nuke 15.0 v4, Nuke 15.1v2 ComfyUI version: v0.2.1 Lora fixes Error Message:

NukeStudio 15.1v2, 64 bit, built Jul 19 2024. Copyright (c) 2024 The Foundry Visionmongers Ltd. All Rights Reserved.

Traceback (most recent call last): File "C:/Users/About/.nuke/menu.py", line 8, in import ComfyUI as comfyui File "C:\Program Files\Nuke15.1v2\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport__feature.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Users/About/.nuke\ComfyUI\init.py", line 8, in from .src import * File "C:\Program Files\Nuke15.1v2\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport\feature.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Users/About/.nuke\ComfyUI\src\init.py", line 1, in from . import ( File "C:\Program Files\Nuke15.1v2\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport\feature.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Users/About/.nuke\ComfyUI\src\common.py", line 8, in from ..env import COMFYUI_DIR, NUKE_USER File "C:\Program Files\Nuke15.1v2\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport\feature.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Users/About/.nuke\ComfyUI\env.py", line 1, in from .nuke_util.nuke_util import get_nuke_path File "C:\Program Files\Nuke15.1v2\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport\feature__.py", line 142, in _import return original_import(name, *args, **kwargs) ModuleNotFoundError: No module named 'ComfyUI.nuke_util.nuke_util'

000 111 01 02

Thank you so much.

vinavfx commented 2 months ago

can't have that name, the folder in .nuke has to be called "nuke_comfyui" not "ComfyUI" and if it's not that, then you didn't clone recursively: git clone recursive ... or manually copy these 2 libraries: https://github.com/vinavfx/nuke_util and https://github.com/vinavfx/python_util

DerickYau commented 2 months ago

不能有这个名字,.nuke 中的文件夹必须叫“nuke_comfyui”而不是“ComfyUI”,如果不是这样,那么你没有递归克隆:git clone recursive ...或手动复制以下 2 个库:https://github.com/vinavfx/nuke_utilhttps://github.com/vinavfx/python_util

Problem solved. Prior to this, when doing git clone --recursive, there had been problems with the network, so I just downloaded the zip and copied it into the .nuke folder. This time i used git clone --recursive... , and the problem was solved. Thanks again.