Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get ComfyUI to launch for manual installation; 'torch' missing error #2752

Open
uraniumcrystalsmaster opened this issue Feb 10, 2024 · 5 comments

Comments

@uraniumcrystalsmaster
Copy link

I tried to download Comfyui manually, but it still gives me the same error. I installed torch in the ComfyUI folder because the ComfyUI installation guide does not provide a location to install it: C:\Users\urani\ComfyUI_manual_install\ComfyUI>python main.py --force-fp16
Traceback (most recent call last):
File "C:\Users\urani\ComfyUI_manual_install\ComfyUI\main.py", line 73, in
import comfy.utils
File "C:\Users\urani\ComfyUI_manual_install\ComfyUI\comfy\utils.py", line 1, in
import torch
ModuleNotFoundError: No module named 'torch'

@ltdrdata
Copy link
Contributor

@WillianReis92
Copy link

same problem here

@cgwers
Copy link

cgwers commented May 15, 2024

I love ComfyUI, but this constant break/fix BSing around with torch and cuda is indicative of serious development methodology issues in this project. On average, I'm managing 3-4 days a week with a running system. The rest of that time is trying to figure out why cuda and torch are fried when I haven't added any custom modules. The reliance on git modules during startup is a hinderance to everyone trying to work with SD stuff since it breaks so damned often.

I realize that this applies to other image AI UIs, too. So talk to them and fix this crap. You're all going to be squashed by the professionals (MS/META/GOOGLE) if you don't figure out how to make these UIs work reliably. Once they release a buy-me monolith app that generates images, you're all sunk.

@mrljdx
Copy link

mrljdx commented May 24, 2024

same problem on macos when update the latest commit

** ComfyUI startup time: 2024-05-24 19:55:24.263218
** Platform: Darwin
** Python version: 3.12.2 (main, Feb  6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)]
** Python executable: /opt/homebrew/opt/python@3.12/bin/python3.12
** Log path: /Users/mrljdx/Workspace/Github/ComfyUI/comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: /Users/mrljdx/Workspace/Github/ComfyUI/custom_nodes/ComfyUI-Manager

Traceback (most recent call last):
  File "/Users/mrljdx/Workspace/Github/ComfyUI/main.py", line 73, in <module>
    import comfy.utils
  File "/Users/mrljdx/Workspace/Github/ComfyUI/comfy/utils.py", line 1, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

@bparlan
Copy link

bparlan commented Jun 24, 2024

Just encountered same problem, it was working a month ago tbh.

** ComfyUI startup time: 2024-06-22 17:25:22.567353
** Platform: Darwin
** Python version: 3.9.6 (default, Nov 10 2023, 13:38:27) 
[Clang 15.0.0 (clang-1500.1.0.2.5)]
** Python executable: /Library/Developer/CommandLineTools/usr/bin/python3
** Log path: /Users/bparlan/AI/ComfyUI/comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: /Users/bparlan/AI/ComfyUI/custom_nodes/ComfyUI-Manager

Traceback (most recent call last):
  File "/Users/bparlan/AI/ComfyUI/main.py", line 73, in <module>
    import comfy.utils
  File "/Users/bparlan/AI/ComfyUI/comfy/utils.py", line 1, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants