LogoWonderful Launcher
  • Home
  • Pricing
  • Docs
  • Download

ModuleNotFoundError: No module named 'av' in ComfyUI

Partially verifiedMedium riskLast verified 2026-07-09

Fix ComfyUI No module named av errors by installing PyAV in the active Python environment, especially for video and media workflows.

If ComfyUI logs ModuleNotFoundError: No module named 'av', install the package av. The project is commonly known as PyAV, but the pip package and import name are both av.

This dependency commonly matters for video, audio, frame extraction, and media helper workflows. In a broken portable environment, it can also appear during core startup repair after Torch and model-stack packages have been restored.

In the SEO Lab portable repair chain, missing av appeared after torchsde was installed. Installing av exposed the next dependency, aiohttp.

Fast answer

For the GitHub Windows portable package:

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

What The Log Looks Like

ModuleNotFoundError: No module named 'av'

If the traceback points into a video custom node, repair that workflow's environment. If it appears during portable startup repair, treat it as the next core dependency in the chain.

Quick Diagnosis

What You SeeMeaningFirst Action
No module named 'av'PyAV package missingInstall av in ComfyUI's Python
Video or media nodes failMedia dependency missingInstall av, then restart and verify the node
Build errors appearWheel/platform issueCheck Python version and avoid source builds if possible
Error changes to aiohttpRepair moved forwardContinue with the next missing package

Step 1: Install AV / PyAV

Windows portable:

.\python_embeded\python.exe -s -m pip install "av>=14.2.0"

Manual venv:

python -m pip install "av>=14.2.0"

Step 2: Verify The Import

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

Manual venv:

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

Step 3: Restart And Check The Next Failure

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

If your original issue was a video custom node, verify that node now imports. If you are repairing a broken portable environment, continue with the new first traceback.

What Not To Do

  • do not search for a package named pyav first; the pip package is av
  • do not install into system Python when ComfyUI uses python_embeded
  • do not move video files or model files for a Python import error
  • do not keep stacking media packages before checking whether av imports

Related Guides

  • No module named 'torchsde' in ComfyUI
  • No module named 'aiohttp' in ComfyUI
  • Repair ComfyUI Portable Dependencies One Missing Module At A Time
  • Fix No module named errors in ComfyUI
  • ComfyUI Dependency Conflicts

Source References

  • Windows portable SEO Lab repair, May 18, 2026: ModuleNotFoundError: No module named 'av' appeared after torchsde repair
  • Same lab ComfyUI\requirements.txt: av>=14.2.0
  • av 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 AV / PyAV
Step 2: Verify The Import
Step 3: Restart And Check The Next Failure
What Not To Do
Related Guides
Source References