Open evilalmus opened 8 months ago
Facing the same issue too. Updating ComfyUI and dependencies don't work too.
me ,too ,Can anyone solve this problem?
me, too.
Traceback (most recent call last):
File "/opt/llm.prj/ComfyUI/nodes.py", line 1899, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import /opt/llm.prj/ComfyUI/custom_nodes/ComfyUI_Fooocus_KSampler module for custom nodes: cannot import name 'lcm' from 'comfy.samplers' (/opt/llm.prj/ComfyUI/comfy/samplers.py)
...
0.0 seconds (IMPORT FAILED): /opt/llm.prj/ComfyUI/custom_nodes/ComfyUI_Fooocus_KSampler
Same issue!Is anyone can fix this problem now?
Hey, it appears where the comfy lcm
class was located changed. The following modifications fixed the comfy startup error on my machine:
custom_nodes\ComfyUI_Fooocus_Ksampler\sampler\Fooocus\patch.py
remove lcm
from line 6.from comfy.conds import lcm
after that line.patch.py before the changes:
from comfy.samplers import model_management, lcm, math
patch.py after the changes:
from comfy.samplers import model_management, math
from comfy.conds import lcm
Hopefully this works for you!
Hey, it appears where the comfy
lcm
class was located changed. The following modifications fixed the comfy startup error on my machine:
- In
custom_nodes\ComfyUI_Fooocus_Ksampler\sampler\Fooocus\patch.py
removelcm
from line 6.- Insert a new line that reads
from comfy.conds import lcm
after that line.- Save the file (of course), then restart the comfy.
patch.py before the changes:
from comfy.samplers import model_management, lcm, math
patch.py after the changes:
from comfy.samplers import model_management, math from comfy.conds import lcm
Hopefully this works for you!
Solved, thank you very much
I'm not sure what I'm missing, I did try running
update_comfyui_and_python_dependencies.bat
, which did not resolve the issue. I also tried with a non-portable install of comfyui and had the same error.