-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: AttributeError: config #11642
Comments
Having a look at official documentation can help. Change
to
Issue is fixed with this. |
I have same problem. running stable-diffusion-webui 1.3.2 |
@EngsShi Are you running yours using a Docker container? If so which image version? I'm running 1.3.2 and updates made pydantic===1.10.11 (fixes the AttributeError) and also torchmetrics===0.11.4 for another error. Everything runs until |
Hey @wezside , did you found the solution? |
I upgrated fastapi for another error and then got the same error.Finally, I fixed it by "pip install --upgrade fastapi==0.90.1". |
Confirming the fix with the Before:
After:
|
See AUTOMATIC1111#11642 (comment) This resolves a crashing bug for me on Python 3.10 and it appears to do so as well for others.
See AUTOMATIC1111#11642 (comment) This resolves a crashing bug for me on Python 3.10 and it appears to do so as well for others.
Just remove fastapi from TORCH_COMMAND |
@Marvel0us7 Why is that a solution? I don't see |
My error comes from installing torch with the wrong command. I guess when installing torch in the venv with fastapi, an unsupported version of fastapi and it's requirements gets installed. FastAPI is required by gradio and that is pinned to 3.32.0 in requirements.txt |
pydantic 2.0 branch provides breaking changes from 1.0 branch, and fix its branch is better. |
Is there an existing issue for this?
What happened?
Hello,
I did a fresh install of stable-diffusion-webui on Arch Linux and got the following error during startup:
File "/home/omgwtfbbq/stable-diffusion-webui/venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 193, in getattr
raise AttributeError(item)
AttributeError: config
And crash
Steps to reproduce the problem
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip wheel
deactivate
Use fixed start script for Arch:
#!/usr/bin/env bash
source venv/bin/activate
export HSA_OVERRIDE_GFX_VERSION=10.3.0
export MIOPEN_DEBUG_COMGR_HIP_PCH_ENFORCE=0
export PYTORCH_HIP_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
export PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
export TORCH_COMMAND='pip install --pre fastapi torch torchvision --extra-index-url https://download.pytorch.org/whl/nightly/rocm5.5'
export REQS_FILE='requirements.txt'
export LD_PRELOAD=/usr/lib/libtcmalloc.so
python launch.py --listen --opt-sub-quad-attention --disable-nan-check
Fix ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed' with solution from #11458
Start and get the error.
What should have happened?
Normal start, zero errors, only xformers warning
Version or Commit where the problem happens
1.4
What Python version are you running on ?
Python 3.11.x (above, no supported yet)
What platforms do you use to access the UI ?
Linux
What device are you running WebUI on?
AMD GPUs (RX 6000 above)
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of extensions
None
Console logs
Additional information
I had it running like this for little less than a month now. I created a working venv on June 13th when first torch+ROCm nightly was built. At that point there was no ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed' with solution and no i_n getattr raise AttributeError(item) AttributeError: config_
Now a complete fresh install doesn't work anymore.
The text was updated successfully, but these errors were encountered: