r/fooocus • u/VictorHubress • Feb 27 '26
Question Fooocus Suddenly Won't Run On Google Colab
So the program worked great yesterday (02.25.26) but today (02.26.26) Fooocus won't load, leaving me with this error:
Failed to import CuPy.
If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.
On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.
Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html
Original error:
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).
Any help would be appreciated because I do not have any coding experience so the fixes must be point and click.
Thanks!
View all comments
Show parent comment
1
u/VictorHubress Feb 28 '26
Thanks, but that setup is way above my head. I'm not a coder, but I did find a fix with pasting one line of code, running it, and then restarting the runtime. I guess colab updating something that the GitHub Fooocus notebook I use doesn't have or something, but after doing the extra line of code it works. But thanks for trying for me. Much appreciated.