frequent-errors
Missing piexif Module in ComfyUI
How to fix the No module named piexif error when starting ComfyUI
Error Messages
When ComfyUI starts, one of the following errors appears in the terminal log:
ModuleNotFoundError: No module named 'piexif'
Cannot import ... module for custom nodes: No module named 'piexif'
Cause
piexif is a pure-Python library for reading and writing EXIF image metadata. Several popular plugins depend on it to embed workflow information into generated images, including:
- ComfyUI-Impact-Pack
- save-image-extended-comfyui
- ComfyUI_Comfyroll_CustomNodes
- comfyui-prompt-reader-node
When piexif is missing, these plugins fail to load, but ComfyUI's core functionality is unaffected.
Severity
Low -- only plugins that read or write image metadata are affected.
Fix
Open a terminal on the Environments page in Wonderful Launcher and run:
pip install piexif
Restart ComfyUI after the installation completes.
Notes
The latest version of piexif is 1.1.3. It is a pure-Python package with no compilation step, so you will not run into C compiler issues during installation. The library is updated infrequently but is stable and widely used across the ComfyUI ecosystem.
Still not resolved?
Contact support using the "Contact Us" button inside the app.
Documentation Wonderful Launcher