tiankuan93 / ComfyUI-V-Express

85 stars 8 forks source link

Import issues - Diffusers #8

Open AILova opened 3 weeks ago

AILova commented 3 weeks ago

I thought I installed everything correctly, but when I launch ComfyUI, it throws the following error about diffusers not being found. I did a pip install -r requirements.txt and if I go to pythob command link and type "import diffusers" it successfully imports. Anyone know what I'm doing wrong in order for this custom_node to find my installed requirements? Thanks!

Traceback (most recent call last): File "F:\AI_TOOLS\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "F:\AI_TOOLS\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "F:\AI_TOOLS\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express\nodes.py", line 12, in from diffusers.utils.torch_utils import randn_tensor ModuleNotFoundError: No module named 'diffusers'

Cannot import F:\AI_TOOLS\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express module for custom nodes: No module named 'diffusers'

tiankuan93 commented 3 weeks ago

If you are using ComfyUI_windows_portable, you should use .\python_embeded\python.exe -m pip to replace pip for installation.

AILova commented 3 weeks ago

Thanks much for the response... I'll give it a shot.

AILova commented 3 weeks ago

Got it installed thanks. Had to perform the below first, but it ended up working... now to see if it runs...

pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118