[GH-ISSUE #649] doesn't see the main.py file but I have it! python3: can't open file '/content/main.py': [Errno 2] No such file or directory ComfyUI Google colab HELP!!! HELP!!! #300

Open
opened 2026-10-27 21:15:52 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @wizard3376 on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/649

I'm trying to enable ComfyUI in Google Colab
I went to the link
Notepad Colab
https://colab.research.google.com/github/ltdrdata/ComfyUI-Manager/blob/main/notebooks/comfyui_colab_with_manager.ipynb

I'm launching "Run ComfyUI with localtunnel"
and then the error appears

/tools/node/bin/lt -> /tools/node/lib/node_modules/localtunnel/bin/lt.js

  • localtunnel@2.0.2
    added 22 packages from 22 contributors in 2.279s
    python3: can't open file '/content/main.py': [Errno 2] No such file or directory

the first time I logged into ComfyUI, the second time it gives an error, oddly enough, but I have the main.py file

it happened that I went into ComfyUI but there was a 404 error on the screen

in 99% of cases it gives an error, and in 1% you can go to ComfyUI

I also chose the second option
"Launch ComfyUI using iframe colab (use only if the previous method with localtunnel does not work)" and still an error

python3: can't open file '/content/main.py': [Errno 2] No such file or directory

Help please (0 - 0)

Originally created by @wizard3376 on GitHub (May 6, 2024). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/649 I'm trying to enable ComfyUI in Google Colab I went to the link Notepad Colab https://colab.research.google.com/github/ltdrdata/ComfyUI-Manager/blob/main/notebooks/comfyui_colab_with_manager.ipynb I'm launching "Run ComfyUI with localtunnel" and then the error appears /tools/node/bin/lt -> /tools/node/lib/node_modules/localtunnel/bin/lt.js + localtunnel@2.0.2 added 22 packages from 22 contributors in 2.279s python3: can't open file '/content/main.py': [Errno 2] No such file or directory the first time I logged into ComfyUI, the second time it gives an error, oddly enough, but I have the main.py file it happened that I went into ComfyUI but there was a 404 error on the screen in 99% of cases it gives an error, and in 1% you can go to ComfyUI I also chose the second option "Launch ComfyUI using iframe colab (use only if the previous method with localtunnel does not work)" and still an error python3: can't open file '/content/main.py': [Errno 2] No such file or directory Help please (0 - 0)
Author
Owner

@Amit30swgoh commented on GitHub (May 31, 2024):

try instead of main.py to use your mounted google drive path were the main.py for example:
!python /content/drive/MyDrive/ComfyUI/main.py --dont-print-server --highvram

good luck

<!-- gh-comment-id:2141550443 --> @Amit30swgoh commented on GitHub (May 31, 2024): try instead of main.py to use your mounted google drive path were the main.py for example: !python /content/drive/MyDrive/ComfyUI/main.py --dont-print-server --highvram good luck
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#300
No description provided.