Repository: stable-diffusion-webui
Issue: [Bug]: lzma
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Running webui.sh presents errors to do with lzma and pytorch

### Steps to reproduce the problem

1. Run webui.sh
2. Get presented with lzma error.
3. Check that lzma is installed - yes.
4.  Re-install lzma
5. Same error.


### What should have happened?

webui.sh launches stable diffusion.

### Sysinfo

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-33-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Quadro M1200/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: Precision 5520

### What browsers do you use to access the UI ?

Mozilla Firefox

### Console logs

```Shell
Launching Web UI with arguments: 
Traceback (most recent call last):
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 44, in main
    start()
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/modules/initialize.py", line 16, in imports
    import pytorch_lightning  # noqa: F401
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/pytorch_lightning/__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/pytorch_lightning/callbacks/callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/pytorch_lightning/utilities/types.py", line 27, in <module>
    from torchmetrics import Metric
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchmetrics/__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchmetrics/functional/__init__.py", line 50, in <module>
    from torchmetrics.functional.image._deprecated import (
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchmetrics/functional/image/__init__.py", line 17, in <module>
    from torchmetrics.functional.image.lpips import learned_perceptual_image_patch_similarity
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchmetrics/functional/image/lpips.py", line 45, in <module>
    from torchvision import models as tv
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchvision/__init__.py", line 6, in <module>
    from torchvision import datasets, io, models, ops, transforms, utils
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchvision/datasets/__init__.py", line 1, in <module>
    from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchvision/datasets/_optical_flow.py", line 13, in <module>
    from .utils import _read_pfm, verify_str_arg
  File "/home/anarcho/bin/a1111/stable-diffusion-webui/stable-diffusion-webui/.venv/lib/python3.10/site-packages/torchvision/datasets/utils.py", line 6, in <module>
    import lzma
  File "/home/anarcho/.pyenv/versions/3.10.0/lib/python3.10/lzma.py", line 27, in <module>
    from _lzma import *
ModuleNotFoundError: No module named '_lzma'
```


### Additional information

_No response_