Comfy-Org / Comfy-Org/ComfyUI

"TypeError: Failed to fetch" on run_cpu - SOLUTION/SOLUÇÃO

Open
#12,508 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14

Python 3.12

Python 3.11

👉 DESINSTALE TODOS

Como desinstalar:

Win + R

Digite:

appwiz.cpl

Remova todas as versões de Python.

Reinicie o PC.

🟢 PASSO 1 — INSTALAR PYTHON CORRETO

Baixe:

👉 Python 3.10.19 (64-bit)

Durante a instalação:

✅ Marque Add Python to PATH
Clique em Install Now

Depois teste:

python --version

Tem que aparecer algo como:

Python 3.10.x

Se aparecer isso → OK ✅

🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)

Baixe e instale o Git.

Depois teste no CMD:

git --version

Se aparecer versão → OK ✅

🟢 PASSO 3 — BAIXAR O COMFYUI

Escolha uma pasta (exemplo: Documentos)

No CMD:

cd C:\Users\SEU_USUARIO\Documents

Depois:

git clone https://github.com/comfyanonymous/ComfyUI.git

Espere terminar.

Depois entre na pasta:

cd ComfyUI

🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)

⚠️ Esse passo é CRÍTICO

Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):

Use cu118

Digite:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Espere terminar (vai baixar ~2.7GB).

🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO

Ainda dentro da pasta ComfyUI:

pip install -r requirements.txt

Espere terminar.

🟢 PASSO 6 — RODAR O COMFYUI

Ainda na pasta:

python main.py

Se deu certo vai aparecer:

Device: cuda:0 NVIDIA ...
Starting server
To see the GUI go to: http://127.0.0.1:8188

Abra no navegador:

http://127.0.0.1:8188

PRONTO 🔥

🟡 SE DER ERRO CUDA

Atualize os drivers da NVIDIA.

🔵 PARA ATUALIZAR NO FUTURO

Entre na pasta ComfyUI:

git pull
pip install -r requirements.txt

📌 RESUMO DA RECEITA CERTA

✔ Python 3.10.19
✔ Git instalado
✔ torch cu118
✔ requirements instalados
✔ rodar com python main.py

### Actual Behavior

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14

Python 3.12

Python 3.11

👉 DESINSTALE TODOS

Como desinstalar:

Win + R

Digite:

appwiz.cpl

Remova todas as versões de Python.

Reinicie o PC.

🟢 PASSO 1 — INSTALAR PYTHON CORRETO

Baixe:

👉 Python 3.10.19 (64-bit)

Durante a instalação:

✅ Marque Add Python to PATH
Clique em Install Now

Depois teste:

python --version

Tem que aparecer algo como:

Python 3.10.x

Se aparecer isso → OK ✅

🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)

Baixe e instale o Git.

Depois teste no CMD:

git --version

Se aparecer versão → OK ✅

🟢 PASSO 3 — BAIXAR O COMFYUI

Escolha uma pasta (exemplo: Documentos)

No CMD:

cd C:\Users\SEU_USUARIO\Documents

Depois:

git clone https://github.com/comfyanonymous/ComfyUI.git

Espere terminar.

Depois entre na pasta:

cd ComfyUI

🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)

⚠️ Esse passo é CRÍTICO

Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):

Use cu118

Digite:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Espere terminar (vai baixar ~2.7GB).

🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO

Ainda dentro da pasta ComfyUI:

pip install -r requirements.txt

Espere terminar.

🟢 PASSO 6 — RODAR O COMFYUI

Ainda na pasta:

python main.py

Se deu certo vai aparecer:

Device: cuda:0 NVIDIA ...
Starting server
To see the GUI go to: http://127.0.0.1:8188

Abra no navegador:

http://127.0.0.1:8188

PRONTO 🔥

🟡 SE DER ERRO CUDA

Atualize os drivers da NVIDIA.

🔵 PARA ATUALIZAR NO FUTURO

Entre na pasta ComfyUI:

git pull
pip install -r requirements.txt

📌 RESUMO DA RECEITA CERTA

✔ Python 3.10.19
✔ Git instalado
✔ torch cu118
✔ requirements instalados
✔ rodar com python main.py

### Steps to Reproduce

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14

Python 3.12

Python 3.11

👉 DESINSTALE TODOS

Como desinstalar:

Win + R

Digite:

appwiz.cpl

Remova todas as versões de Python.

Reinicie o PC.

🟢 PASSO 1 — INSTALAR PYTHON CORRETO

Baixe:

👉 Python 3.10.19 (64-bit)

Durante a instalação:

✅ Marque Add Python to PATH
Clique em Install Now

Depois teste:

python --version

Tem que aparecer algo como:

Python 3.10.x

Se aparecer isso → OK ✅

🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)

Baixe e instale o Git.

Depois teste no CMD:

git --version

Se aparecer versão → OK ✅

🟢 PASSO 3 — BAIXAR O COMFYUI

Escolha uma pasta (exemplo: Documentos)

No CMD:

cd C:\Users\SEU_USUARIO\Documents

Depois:

git clone https://github.com/comfyanonymous/ComfyUI.git

Espere terminar.

Depois entre na pasta:

cd ComfyUI

🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)

⚠️ Esse passo é CRÍTICO

Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):

Use cu118

Digite:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Espere terminar (vai baixar ~2.7GB).

🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO

Ainda dentro da pasta ComfyUI:

pip install -r requirements.txt

Espere terminar.

🟢 PASSO 6 — RODAR O COMFYUI

Ainda na pasta:

python main.py

Se deu certo vai aparecer:

Device: cuda:0 NVIDIA ...
Starting server
To see the GUI go to: http://127.0.0.1:8188

Abra no navegador:

http://127.0.0.1:8188

PRONTO 🔥

🟡 SE DER ERRO CUDA

Atualize os drivers da NVIDIA.

🔵 PARA ATUALIZAR NO FUTURO

Entre na pasta ComfyUI:

git pull
pip install -r requirements.txt

📌 RESUMO DA RECEITA CERTA

✔ Python 3.10.19
✔ Git instalado
✔ torch cu118
✔ requirements instalados
✔ rodar com python main.py

### Debug Logs

```powershell
🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14

Python 3.12

Python 3.11

👉 DESINSTALE TODOS

Como desinstalar:

Win + R

Digite:

appwiz.cpl

Remova todas as versões de Python.

Reinicie o PC.

🟢 PASSO 1 — INSTALAR PYTHON CORRETO

Baixe:

👉 Python 3.10.19 (64-bit)

Durante a instalação:

✅ Marque Add Python to PATH
Clique em Install Now

Depois teste:

python --version

Tem que aparecer algo como:

Python 3.10.x

Se aparecer isso → OK ✅

🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)

Baixe e instale o Git.

Depois teste no CMD:

git --version

Se aparecer versão → OK ✅

🟢 PASSO 3 — BAIXAR O COMFYUI

Escolha uma pasta (exemplo: Documentos)

No CMD:

cd C:\Users\SEU_USUARIO\Documents

Depois:

git clone https://github.com/comfyanonymous/ComfyUI.git

Espere terminar.

Depois entre na pasta:

cd ComfyUI

🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)

⚠️ Esse passo é CRÍTICO

Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):

Use cu118

Digite:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Espere terminar (vai baixar ~2.7GB).

🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO

Ainda dentro da pasta ComfyUI:

pip install -r requirements.txt

Espere terminar.

🟢 PASSO 6 — RODAR O COMFYUI

Ainda na pasta:

python main.py

Se deu certo vai aparecer:

Device: cuda:0 NVIDIA ...
Starting server
To see the GUI go to: http://127.0.0.1:8188

Abra no navegador:

http://127.0.0.1:8188

PRONTO 🔥

🟡 SE DER ERRO CUDA

Atualize os drivers da NVIDIA.

🔵 PARA ATUALIZAR NO FUTURO

Entre na pasta ComfyUI:

git pull
pip install -r requirements.txt

📌 RESUMO DA RECEITA CERTA

✔ Python 3.10.19
✔ Git instalado
✔ torch cu118
✔ requirements instalados
✔ rodar com python main.py
```

### 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.