Skip to content

[Bug] 'NoneType' object is not callable #716

@windFFYL

Description

@windFFYL

Checklist

Describe the Bug

File "L:\AIgongju\ComfyUI-aki-v1.1\execution.py", line 303, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "L:\AIgongju\ComfyUI-aki-v1.1\execution.py", line 291, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\custom_nodes\ComfyUI-nunchaku\nodes\lora\flux.py", line 117, in load_lora
ret_model = copy.deepcopy(model) # copy everything except the model
^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 162, in deepcopy
y = _reconstruct(x, memo, *rv)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 259, in _reconstruct
state = deepcopy(state, memo)
^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 136, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 221, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 162, in deepcopy
y = _reconstruct(x, memo, *rv)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 259, in _reconstruct
state = deepcopy(state, memo)
^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 136, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 221, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 162, in deepcopy
y = _reconstruct(x, memo, *rv)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\AIgongju\ComfyUI-aki-v1.1\python\Lib\copy.py", line 261, in _reconstruct
y.setstate(state)
TypeError: 'NoneType' object is not callable

Prompt executed in 38.06 seconds
Exception ignored in: <function ModelPatcher.del at 0x00000290101105E0>
Traceback (most recent call last):
File "L:\AIgongju\ComfyUI-aki-v1.1\comfy\model_patcher.py", line 1354, in del
self.unpin_all_weights()
File "L:\AIgongju\ComfyUI-aki-v1.1\comfy\model_patcher.py", line 651, in unpin_all_weights
for key in list(self.pinned):
^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'pinned'

Environment

Python version: 3.12.12 pytorch version: 2.9.1+cu130

Reproduction Steps

1.TTP图像高清放大.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions