Error today, just me ? or everyone? #3036
Replies: 1 comment
-
Hey everyone, For those using TheLastBen’s Colab notebook for Stable Diffusion (AUTOMATIC1111) and suddenly getting import errors like: ImportError: cannot import name 'ModuleAvailableCache' from 'lightning_utilities.core.imports' It’s because some core dependencies auto-updated and broke compatibility. ✅ TEMP FIX (Colab): !pip uninstall -y lightning-utilities pytorch-lightning torchmetrics wandb Also, if needed, patch these 2 files to avoid annoying warnings: !sed -i 's@from pytorch_lightning.loggers.wandb import WandbLogger # noqa: F401@@g' /usr/local/lib/python3.11/dist-packages/pytorch_lightning/loggers/init.py Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi! Just a heads-up — the Colab version of the AUTOMATIC1111 notebook is currently broken due to an incompatibility with the latest version of lightning_utilities.
The error is caused by a missing ModuleAvailableCache in lightning_utilities.core.imports — this function seems to have been removed in newer versions. Downgrading to lightning-utilities==0.9.0 fixes the issue.
Everything was working fine until yesterday. Maybe consider pinning the package version in the notebook to avoid future breakage?
Thanks for the great work 🙏
Beta Was this translation helpful? Give feedback.
All reactions