Kosinkadink / ComfyUI-Advanced-ControlNet

ControlNet scheduling and masking nodes with sliding context support
GNU General Public License v3.0
435 stars 43 forks source link

control.py - attempted relative import with no known parent package #101

Closed Aljnk closed 1 month ago

Aljnk commented 2 months ago

from .control_sparsectrl import SparseModelPatcher, SparseControlNet, SparseCtrlMotionWrapper, SparseMethod, SparseSettings, SparseSpreadMethod, PreprocSparseRGBWrapper

Screenshot_1

Message=attempted relative import with no known parent package Source=...\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py StackTrace: File "...\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 13, in (Current frame) from .control_sparsectrl import SparseModelPatcher, SparseControlNet, SparseCtrlMotionWrapper, SparseMethod, SparseSettings, SparseSpreadMethod, PreprocSparseRGBWrapper File "...\ComfyUI\custom_nodes\comfyui-art-venture\modules\utils.py", line 145, in load_module module_spec.loader.exec_module(module) File "...\ComfyUI\custom_nodes\comfyui-art-venture\modules\controlnet\advanced.py", line 31, in module = load_module(module_path, "adv_control/control") File "...\ComfyUI\custom_nodes\comfyui-art-venture\modules\controlnet__init.py", line 7, in from .advanced import comfy_load_controlnet File "...\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 38, in from .controlnet import ( File "...\ComfyUI\custom_nodes\comfyui-art-venture\init__.py", line 13, in from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "...\ComfyUI\nodes.py", line 1864, in load_custom_node module_spec.loader.exec_module(module) File "...\ComfyUI\nodes.py", line 1900, in load_custom_nodes success = load_custom_node(module_path, base_node_names) File "...\ComfyUI\nodes.py", line 1952, in init_custom_nodes load_custom_nodes() File "...\ComfyUI\main.py", line 217, in init_custom_nodes() ImportError: attempted relative import with no known parent package

Kosinkadink commented 2 months ago

Remove comfyui-art-venture and your issue will go away.

Aljnk commented 2 months ago

Thanks a lot :)