ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

After clicking "update_comfyui_and_python_dependencies" and updating, running ComfyUI resulted in an error

Open Simwake opened this issue 1 year ago • 10 comments

Expected Behavior

update_comfyui_and_python_dependencies

Actual Behavior

Prestartup times for custom nodes: 1.2 seconds: E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\main.py", line 77, in import comfy.utils File "E:\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 1, in import torch File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch_init_.py", line 148, in raise err OSError: [WinError 126] 找不到指定的模块。 Error loading "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

Steps to Reproduce

update_comfyui_and_python_dependencies

Debug Logs

Prestartup times for custom nodes:
   1.2 seconds: E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Traceback (most recent call last):
  File "E:\ComfyUI_windows_portable\ComfyUI\main.py", line 77, in <module>
    import comfy.utils
  File "E:\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 1, in <module>
    import torch
  File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\__init__.py", line 148, in <module>
    raise err
OSError: [WinError 126] 找不到指定的模块。 Error loading "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

Other

No response

Simwake avatar Jul 24 '24 06:07 Simwake

same

tonku321 avatar Jul 24 '24 07:07 tonku321

same

I am using Stability Matrix. The updated ComfyUI package master@10b43ce does not work with an error. I added a new ComfyUI package master@10b43ce, same error.I added a new ComfyUI package master@0a4c49c, same error. However, after installing ANOTHER Stability Matrix and adding ComfyUI package master@10b43ce, no error.

miurgh avatar Jul 24 '24 07:07 miurgh

same(

densladkov13 avatar Jul 24 '24 08:07 densladkov13

See this: https://github.com/comfyanonymous/ComfyUI/issues/3687

ltdrdata avatar Jul 24 '24 11:07 ltdrdata

same

Espral avatar Jul 24 '24 14:07 Espral

Screenshot 2024-07-24 at 9 35 43 AM This is failing on torch nightly. I will take a closer look at the issue today.

yoland68 avatar Jul 24 '24 16:07 yoland68

https://github.com/comfyanonymous/ComfyUI/commit/19944ad252106e46a40e0b952c86c1cebc8486ab

Not sure if it's the best fix but it works.

comfyanonymous avatar Jul 24 '24 16:07 comfyanonymous

If you have this issue, run the updater another time and it should be fixed.

comfyanonymous avatar Jul 24 '24 16:07 comfyanonymous

It still doesn't work, even with the fix

babacar1979 avatar Jul 24 '24 17:07 babacar1979

It still doesn't work, even with the fix

It's OK now, but i don't know why 😂

babacar1979 avatar Jul 24 '24 17:07 babacar1979

try to install Visual Studio, and download the C++ package, it works for me.

Pancat009 avatar Dec 10 '24 07:12 Pancat009

try to install Visual Studio, and download the C++ package, it works for me.

thank!! it works.

Simwake avatar Dec 12 '24 03:12 Simwake