Fix for Stable Diffusion Start Guide - Compatible with the latest Google Colab 2025.10

Cover Image for Fix for Stable Diffusion Start Guide - Compatible with the latest Google Colab 2025.10
AICU media
AICU media

There was a situation where AUTOMATIC1111(A1111) attached to the book "Image Generation AI Stable Diffusion Start Guide", which is familiar as "SD Yellow Book", did not work, so here is a correction report. As a cause, Google Colab has been updated to Python 3.12 since 2025.10.

Phenomenon: Cannot start with Start Stable-Diffusion

Easy solution: Try changing the runtime

The first method you should try when this kind of problem occurs is to "change the runtime version". You may be able to get it to work by changing the "runtime version" to an older environment such as "2025.7" from "Runtime" -> "Change runtime type" in the Colab menu.

In fact, even if you switch to the past runtime version, it is necessary to modify it for startup because the update of other dependent libraries is related.

According to Google, previous runtime versions are available for one year after release. The current latest version is in the following environment.

"2025.10" Ubuntu 22.04.4 LTS, Python 3.12.12, numpy 2.0.2, PyTorch 2.8.0, Jax 0.5.3, TensorFlow 2.19.0 (not included in TPU runtime), R version 4.5.1 (2025-06-13) -- "Great Square Root", julia version 1.11.5

It seems that this page is now reported. https://research.google.com/colaboratory/runtime-version-faq.html

The major modification from "2025.7" is that it is no longer "Python 3.11.13". Migration is starting early from 3.10/3.11, which has been used for many years in A1111.

Correspondence by the original author, TheLastBen

The A1111 handled in this book is maintained as "fast-stable-diffusion" by TheLastBen. In response to the migration of Colab itself to Python 3.11, the migration of the base environment itself was carried out. It works with the latest Google Colab at this link.

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb

Updated j.aicu.ai/SBXL1

Rebuilt based on TheLastBen version Python 3.12 compatible version, added Burupen's TruePencil, MelloPencil model download

It is a operation check. Mellow Pencil is running on AUTOMATIC1111.


The following are the questions I received (for search hits)

The following error prevents me from proceeding from "Start Stable Diffusion"

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1766614971.818628 2740 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered E0000 00:00:1766614971.832965 2740 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered W0000 00:00:1766614971.861386 2740 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1766614971.861410 2740 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1766614971.861416 2740 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1766614971.861419 2740 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion- webui/webui.py", line 13, in initialize.imports() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 23, in imports import gradio # noqa: F401 ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/gradio/init.py", line 3, in import gradio.components as components File "/usr/local/lib/python3.12/dist-packages/gradio/components/init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "/usr/local/lib/python3.12/dist- packages/gradio/components/annotated_image.py", line 13, in from gradio.components.base import IOComponent, _Keywords File "/usr/local/lib/python3.12/dist-packages/gradio/components/base.py", line 20, in from fastapi import UploadFile File "/usr/local/lib/python3.12/dist-packages/fastapi/init.py", line 7, in from .applications import FastAPI as FastAPI File "/usr/local/lib/python3.12/dist-packages/fastapi/applications.py", line 15, in from fastapi import routing File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 22, in from fastapi import params File "/usr/local/lib/python3.12/dist- packages/fastapi/params.py", line 4, in from pydantic.fields import FieldInfo, Undefined ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/usr/local/lib/python3.12/dist- packages/pydantic/fields.py)