LogoWonderful Launcher
  • Home
  • Pricing
  • Docs
  • Download

ModuleNotFoundError: No module named 'aiohttp' in ComfyUI

Partially verifiedLow riskLast verified 2026-07-09

Fix ComfyUI No module named aiohttp errors by installing aiohttp in the active Python environment that starts the server.

If ComfyUI logs ModuleNotFoundError: No module named 'aiohttp', the web server dependency aiohttp is missing from the Python environment that launches ComfyUI.

This can block startup because ComfyUI uses HTTP/WebSocket server components. In the SEO Lab portable repair chain, missing aiohttp appeared after av was installed. Installing aiohttp exposed the next missing package, requests.

Fast answer

For the GitHub Windows portable package:

.\python_embeded\python.exe -s -m pip show aiohttp
.\python_embeded\python.exe -s -m pip install "aiohttp>=3.11.8"
.\python_embeded\python.exe -s -c "import aiohttp; print(aiohttp.__version__)"
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

What The Log Looks Like

ModuleNotFoundError: No module named 'aiohttp'

The traceback may appear before the server reaches Starting server, or while a plugin imports server/API helpers.

Quick Diagnosis

What You SeeMeaningFirst Action
No module named 'aiohttp' before server startServer dependency missingInstall aiohttp in ComfyUI's Python
Browser never opensStartup may be blockedRepair aiohttp, restart, read the new log
Error changes to requestsChain moved forwardContinue with the Requests guide
Install succeeds but error remainsWrong Python was repairedVerify with ComfyUI's Python

Step 1: Install aiohttp

Windows portable:

.\python_embeded\python.exe -s -m pip install "aiohttp>=3.11.8"

Manual venv:

python -m pip install "aiohttp>=3.11.8"

Step 2: Verify The Import

.\python_embeded\python.exe -s -c "import aiohttp; print(aiohttp.__version__)"

Manual venv:

python -c "import aiohttp; print(aiohttp.__version__)"

Step 3: Restart ComfyUI

.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

If the server starts, verify the actual process and port before declaring success. If a new package is missing, continue with that first blocker.

What Not To Do

  • do not troubleshoot browser cache before the server dependency imports
  • do not install into system Python when ComfyUI uses python_embeded
  • do not run a broad requirements command if you are preserving a fragile repaired environment
  • do not ignore the next missing package after aiohttp imports successfully

Related Guides

  • No module named 'av' in ComfyUI
  • No module named 'requests' in ComfyUI
  • ComfyUI Reconnecting error
  • Repair ComfyUI Portable Dependencies One Missing Module At A Time
  • Fix No module named errors in ComfyUI

Source References

  • Windows portable SEO Lab repair, May 18, 2026: ModuleNotFoundError: No module named 'aiohttp' appeared after AV repair
  • Same lab ComfyUI\requirements.txt: aiohttp>=3.11.8
  • aiohttp on PyPI

Start free with Wonderful Launcher if this affects your real ComfyUI environment. It keeps launcher-native repair, task logs, and runtime checks in one place; credits are only for image generation and metered tools.

Download Wonderful LauncherSee credit packages

Did this fix your issue?

Your answer helps prioritize verified ComfyUI repairs.

Table of Contents

What The Log Looks Like
Quick Diagnosis
Step 1: Install aiohttp
Step 2: Verify The Import
Step 3: Restart ComfyUI
What Not To Do
Related Guides
Source References