MAC M1 cannot open comfyui v0.4.20

[2025-02-24 12:51:43.895] [error] from comfy import model_management
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/model_management.py”, line 166, in

[2025-02-24 12:51:43.896] [error] total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)

[2025-02-24 12:51:43.896] [error]
[2025-02-24 12:51:43.897] [error] ^^^^^^^^^
[2025-02-24 12:51:43.897] [error] ^^^^^^^^^
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/model_management.py”, line 129, in get_torch_device

[2025-02-24 12:51:43.898] [error] return torch.device(torch.cuda.current_device())

[2025-02-24 12:51:43.898] [error]
[2025-02-24 12:51:43.898] [error] ^^^
[2025-02-24 12:51:43.898] [error] ^^^^^^^^^^^
[2025-02-24 12:51:43.898] [error] ^^^^^^^^^^^
[2025-02-24 12:51:43.899] [error] ^^
File “/Users/rain/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/cuda/init.py”, line 1029, in current_device

[2025-02-24 12:51:43.899] [error] _lazy_init()
[2025-02-24 12:51:43.899] [error]
File “/Users/rain/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/cuda/init.py”, line 367, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
[2025-02-24 12:51:43.899] [error]
AssertionError: Torch not compiled with CUDA enabled

To reset your virtual environment:

  1. Click Troubleshoot
  2. Click All
  3. Find Reset virtual environment, then click Reset
  4. Confirm by clicking the red Reset button

If you are still having issues, it is likely you have an invalid mirror or other user configuration issue. This could be from a previous version, or an interrupted installation.

  1. Click Troubleshooting
  2. Click All
  3. Run the Reinstall task
  4. Once the app restarts, instead of installing again, close the app
  5. In Finder, browse to your installation directory
  6. Rename the user directory - e.g. user.tmp
  7. Reinstall the app as normal

i run the reinstall again,it still error

Would you be able to upload your log files for us please, so we can take a look and figure out what’s going on?

Log file upload link: https://comfy.org/upload-logs

If you want to add them here instead, log file locations are in the ComfyUI Desktop User Guide.

ok,i uploading

It looks like you are unable to use the selected download mirror. The error below is an access denied error (403 Forbidden).

[2025-02-24 19:15:57.772] [info]  error: Failed to unzip wheel: kornia-0.8.0-py2.py3-none-any.whl
  Caused by: an upstream reader returned an error: io error occurred: HTTP status client error (403 Forbidden) for url (https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/f2/33/7721a4f69dd5f020c30de456d7b948fea8d3897d9f29a51f7538948ee7e2/kornia-0.8.0-py2.py3-none-any.whl)

You’ll need to find a python package download mirror that works at your location.

thanks

您好,我也是同样的问题mac无法打开comfyUI

Please start a new topic instead.