comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
57.18k stars 6.05k forks source link

python3: can't open file '/content/main.py #2311

Open shivangvijay opened 11 months ago

shivangvijay commented 11 months ago

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

I am getting this issue when trying to run it on Google colab. The install code given in this link:- [https://github.com/comfyanonymous/ComfyUI/blob/master/notebooks/comfyui_colab.ipynb]

I am exactly following this code but getting above issue.

phenomenal-hardy commented 11 months ago

having the exact same problem 👎

hydra213 commented 11 months ago

Did you %cd into another folder?

Try changing the code in your ComfyUI launch script to the path where your main.py folder is. In my case it's the below:

!python /content/drive/MyDrive/ComfyUI/main.py --dont-print-server

justoy commented 4 months ago

I had the issue. you can run !pwd and !ls to check your current folder and the files in your folder.

in my case, my folder is /content/ComfyUI. after I re-ran the Environment Setup code again, the issue magically resolved.

I guess it's probably some colab re-connect issue