[BUG] - Import failed / No module named 'comfyui-prompt-reader-node.stable_diffusion_prompt_reader'
Description
Hi,
as mentioned here and here, I am getting the following error:
0.0 seconds (IMPORT FAILED): /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-prompt-reader-node
But unlike in the other posts, I am NOT using python < 3.10. Instead, I am on 3.11. I tried installing manually via git and also via ComfyUI Manager. I am on Linux Mint, here is my startup log:
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-02-10 17:55:28.229
** Platform: Linux
** Python version: 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]
** Python executable: /mnt/disks/StableDiffusion/ComfyUI/comfy/bin/python
** ComfyUI Path: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI
** ComfyUI Base Folder Path: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI
** User directory: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/user
** ComfyUI-Manager config path: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/user/comfyui.log
/mnt/disks/StableDiffusion/ComfyUI/comfy/bin/python: No module named uv
[ComfyUI-Manager] Failed to retrieve the information of installed pip packages.
Failed to execute startup-script: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Manager/prestartup_script.py / 'set' object is not a mapping
Prestartup times for custom nodes:
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-easy-use
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/rgthree-comfy
1.8 seconds (PRESTARTUP FAILED): /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Manager
Checkpoint files will always be loaded safely.
Total VRAM 12035 MB, total RAM 32012 MB
pytorch version: 2.6.0+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
Using pytorch attention
ComfyUI version: 0.3.13
[Prompt Server] web root: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/web
(pysssss:WD14Tagger) [DEBUG] Available ORT providers: AzureExecutionProvider, CPUExecutionProvider
(pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider
Traceback (most recent call last):
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/nodes.py", line 2110, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-tensorops/__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-tensorops/nodes/__init__.py", line 7, in <module>
from .redis import SaveToRedis, FetchFromRedis
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-tensorops/nodes/redis.py", line 3, in <module>
import redis
File "/mnt/disks/StableDiffusion/ComfyUI/comfy/lib/python3.11/site-packages/redis/__init__.py", line 3, in <module>
from redis import asyncio # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/disks/StableDiffusion/ComfyUI/comfy/lib/python3.11/site-packages/redis/asyncio/__init__.py", line 1, in <module>
from redis.asyncio.client import Redis, StrictRedis
File "/mnt/disks/StableDiffusion/ComfyUI/comfy/lib/python3.11/site-packages/redis/asyncio/client.py", line 35, in <module>
from redis.asyncio.connection import (
File "/mnt/disks/StableDiffusion/ComfyUI/comfy/lib/python3.11/site-packages/redis/asyncio/connection.py", line 37, in <module>
from async_timeout import timeout as async_timeout
ModuleNotFoundError: No module named 'async_timeout'
Cannot import /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-tensorops module for custom nodes: No module named 'async_timeout'
### Loading: ComfyUI-Impact-Pack (V8.8.1)
[Impact Pack] Wildcards loading done.
------------------------------------------
Comfyroll Studio v1.76 : 175 Nodes Loaded
------------------------------------------
** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
------------------------------------------
### Loading: ComfyUI-Impact-Subpack (V1.2.9)
[Impact Subpack] ultralytics_bbox: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/models/ultralytics/bbox
[Impact Subpack] ultralytics_segm: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/models/ultralytics/segm
[ReActor] - STATUS - Running v0.5.2-b2 in ComfyUI
Torch version: 2.6.0+cu124
--------------
### Mixlab Nodes: Loaded
json_repair## OK
ChatGPT.available True
edit_mask.available True
## clip_interrogator_model not found: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/models/clip_interrogator/Salesforce/blip-image-captioning-base, pls download from https://huggingface.co/Salesforce/blip-image-captioning-base
ClipInterrogator.available True
## text_generator_model not found: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/models/prompt_generator/text2image-prompt-generator, pls download from https://huggingface.co/succinctly/text2image-prompt-generator/tree/main
## zh_en_model not found: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/models/prompt_generator/opus-mt-zh-en, pls download from https://huggingface.co/Helsinki-NLP/opus-mt-zh-en/tree/main
PromptGenerate.available True
ChinesePrompt.available True
RembgNode_.available True
TripoSR.available
MiniCPMNode.available
Scenedetect.available
FishSpeech.available False
SenseVoice.available
Whisper.available False
fal-client## OK
FalVideo.available
--------------
Traceback (most recent call last):
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/nodes.py", line 2110, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-prompt-reader-node/__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-prompt-reader-node/nodes.py", line 31, in <module>
from .stable_diffusion_prompt_reader.sd_prompt_reader.constants import (
ModuleNotFoundError: No module named 'comfyui-prompt-reader-node.stable_diffusion_prompt_reader'
Cannot import /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-prompt-reader-node module for custom nodes: No module named 'comfyui-prompt-reader-node.stable_diffusion_prompt_reader'
jjk_util loding
[comfy-mtb] | INFO -> loaded 94 nodes successfuly
[comfy-mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.
[rgthree-comfy] Loaded 42 epic nodes. 🎉
Total VRAM 12035 MB, total RAM 32012 MB
pytorch version: 2.6.0+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
Web extensions folder found at /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/web/extensions/ComfyLiterals
Could not find efficiency nodes
[comfyui_controlnet_aux] | INFO -> Using ckpts path: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
Loaded ControlNetPreprocessors nodes from /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux
Could not find AdvancedControlNet nodes
Could not find AnimateDiff nodes
Could not find IPAdapter nodes
Could not find VideoHelperSuite nodes
Could not load ImpactPack nodes Could not find ImpactPack nodes
[ComfyUI-Easy-Use] server: v1.2.6 Loaded
[ComfyUI-Easy-Use] web root: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-easy-use/web_version/v2 Loaded
### Loading: ComfyUI-Manager (V3.17.6)
### ComfyUI Version: v0.3.13-9-g44e19a28 | Released on '2025-02-02'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `/mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/pr-was-node-suite-comfyui-47064894/was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 218 nodes successfully.
"Art enables us to find ourselves and lose ourselves at the same time." - Thomas Merton
Import times for custom nodes:
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/debug_tensors.py
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-florence2
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/save-image-extended-comfyui
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Jjk-Nodes
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyLiterals
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfy-image-saver
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_instantid
0.0 seconds (IMPORT FAILED): /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-prompt-reader-node
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-wd14-tagger
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-GGUF
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/wlsh_nodes
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-custom-scripts
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_essentials
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI_Load_Image_With_Metadata
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/rgthree-comfy
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-kjnodes
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI_essentials
0.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
0.0 seconds (IMPORT FAILED): /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-tensorops
0.1 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-art-venture
0.1 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfy-mtb
0.1 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Manager
0.1 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-easy-use
0.1 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-impact-subpack
0.4 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-impact-pack
0.8 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/ComfyUI-FluxTrainer
0.9 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-reactor
1.3 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui_zenid
1.4 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/pr-was-node-suite-comfyui-47064894
3.0 seconds: /mnt/disks/StableDiffusion/ComfyUI/ComfyUI/custom_nodes/comfyui-mixlab-nodes
Starting server
To see the GUI go to: http://127.0.0.1:8188
Reproduction steps
- Install ComfyUI
- Install Comfy manager
- Search for "Prompt reader"
- Click install
- Error
Image file
need update your submodule
Try uninstall it and manually update works for me, Install manually Please make sure to install the submodules along with the main repository.
cd to the custom_node folder
Clone this repo
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git
Install dependencies
cd comfyui-prompt-reader-node
pip install -r requirements.txt
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
I tried to manually install, but nothing installed when trying to update dependencies. I get the exact error OP mentioned.
Traceback (most recent call last):
File "/workspace/ComfyUI/nodes.py", line 2141, in load_custom_node
module_spec.loader.exec_module(module)
File "
I am using python 3.12 in a conda environment.
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
I tried to manually install, but nothing installed when trying to update dependencies. I get the exact error OP mentioned.
Traceback (most recent call last): File "/workspace/ComfyUI/nodes.py", line 2141, in load_custom_node module_spec.loader.exec_module(module) File "", line 999, in exec_module File "", line 488, in _call_with_frames_removed File "/workspace/ComfyUI/custom_nodes/comfyui-prompt-reader-node/init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/workspace/ComfyUI/custom_nodes/comfyui-prompt-reader-node/nodes.py", line 31, in from .stable_diffusion_prompt_reader.sd_prompt_reader.constants import ( ModuleNotFoundError: No module named 'comfyui-prompt-reader-node.stable_diffusion_prompt_reader.sd_prompt_reader'
I am using python 3.12 in a conda environment.
If you manually installed and used --recursive flag while cloning as told above, then you should have a "stable_diffusion_prompt_reader" folder inside "comfyui-prompt-reader-node". If that's not the case then delete "comfyui-prompt-reader-node" and start again.
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
too many unnecessary movements, let the author correct this bug
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
The recursive manual install is not working for me on a clean install of Comfy 0.3.40 and front end 1.21.7, using Python 3.10.11. the node still says "failed to import" after following the above instruction.
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
The recursive manual install is not working for me on a clean install of Comfy 0.3.40 and front end 1.21.7, using Python 3.10.11. the node still says "failed to import" after following the above instruction.
Same here
I run this when I am in ComfyUI/custom_nodes
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git
and this solved my problem.
Yeah I can confirm this too, the (recursive) flag solution worked for me too :
I deleted the (comfyui-prompt-reader-node) ,, opened a command prompt from where I am under the (ComfyUI/custom_nodes) folder path,
then I used the the above git clone command with the recursive flag:
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git
I looked at the downloaded (comfyui-prompt-reader-node) folder & indeed I found a sub folder there called (stable_diffusion_prompt_reader), I restarted Comfy then that error is gone & the nodes worked.
您好! 您的来信已收到,我会尽快给您回复!-------------------------------------------------------------以上是我设置的自动回复信息,表示您的邮件已投递成功。This is an automatic mail reply.Your message has been delivered successfully.
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git worked me too! When installed from ComfyUI Manager, comfyui-prompt-reader-node does not work. Thank you for the solution!