Comfy-Org / Comfy-Org/ComfyUI

followed your cmds but ended with some error Using Macbook pro 2016

Open
#6,517 1 comment 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Followed your guides and ended with this error using MACBOOK PRO 2016

Image

### Logs

```powershell
(base) hhh@hhhs-MacBook-Pro ComfyUI % python3.11 main.py

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "/Users/hhh/ComfyUI/main.py", line 134, in
import comfy.utils
File "/Users/hhh/ComfyUI/comfy/utils.py", line 20, in
import torch
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/__init__.py", line 1477, in
from .functional import * # noqa: F403
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/functional.py", line 9, in
import torch.nn.functional as F
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/nn/__init__.py", line 1, in
from .modules import * # noqa: F403
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/nn/modules/__init__.py", line 35, in
from .transformer import TransformerEncoder, TransformerDecoder, \
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/nn/modules/transformer.py", line 20, in
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
Warning, you are using an old pytorch version and some ckpt/pt files might be loaded unsafely. Upgrading to 2.4 or above is recommended.
Traceback (most recent call last):
File "/Users/hhh/ComfyUI/main.py", line 136, in
import execution
File "/Users/hhh/ComfyUI/execution.py", line 13, in
import nodes
File "/Users/hhh/ComfyUI/nodes.py", line 22, in
import comfy.diffusers_load
File "/Users/hhh/ComfyUI/comfy/diffusers_load.py", line 3, in
import comfy.sd
File "/Users/hhh/ComfyUI/comfy/sd.py", line 6, in
from comfy import model_management
File "/Users/hhh/ComfyUI/comfy/model_management.py", line 166, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File "/Users/hhh/ComfyUI/comfy/model_management.py", line 129, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/cuda/__init__.py", line 787, in current_device
_lazy_init()
File "/Users/hhh/.pyenv/versions/3.11.0/lib/python3.11/site-packages/torch/cuda/__init__.py", line 293, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
(base) hhh@hhhs-MacBook-Pro ComfyUI %
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.