lllyasviel / lllyasviel/stable-diffusion-webui-forge

Error in modules/errors.py

Open
#1,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi!
Error on install
Traceback (most recent call last): File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/launch.py", line 48, in <module> main() File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/launch.py", line 44, in main start() File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/launch_utils.py", line 465, in start import webui File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/webui.py", line 13, in <module> initialize.imports() File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/initialize.py", line 36, in imports shared_init.initialize() File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/shared_init.py", line 17, in initialize from modules import options, shared_options File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/shared_options.py", line 4, in <module> from modules import localization, ui_components, shared_items, shared, interrogate, shared_gradio_themes, util, sd_emphasis File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/interrogate.py", line 13, in <module> from modules import devices, paths, shared, lowvram, modelloader, errors, torch_utils File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/devices.py", line 113, in <module> errors.run(enable_tf32, "Enabling TF32") File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/errors.py", line 100, in run display(task, e) File "/home/elvis/sdwebui/stable-diffusion-webui-forge-main/stable-diffusion-webui/modules/errors.py", line 68, in display te = traceback.TracebackException.from_exception(e) File "/usr/lib/python3.10/traceback.py", line 572, in from_exception return cls(type(exc), exc, exc.__traceback__, *args, **kwargs) AttributeError: 'str' object has no attribute '__traceback__'

https://github.com/lllyasviel/stable-diffusion-webui-forge/blob/f6ef105cb333692d8695ebe14c8409f98675e2f4/modules/errors.py#L100
need
display(e, task)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in modules/errors.py around display and run the installation path shown in the traceback. Verify the argument order used by errors.run and reproduce the failure. Done means the installation error is displayed without the AttributeError from traceback.TracebackException.from_exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.