fast-stable-diffusion: AttributeError: module 'modules.paths' has no attribute 'data_path'
It seems like in the Automatic1111 repo the modules/paths.py was changed. Now the sideloaded paths.py from here does not include a data_path variable
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 16, in <module>
from modules import extra_networks_hypernet, ui_extra_networks_hypernets, ui_extra_networks_textual_inversion
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/extra_networks_hypernet.py", line 2, in <module>
from modules.hypernetworks import hypernetwork
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py", line 10, in <module>
import modules.textual_inversion.dataset
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/dataset.py", line 13, in <module>
from modules import devices, shared
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py", line 16, in <module>
from modules import localization, extensions, script_loading, errors, ui_components, shared_items
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/extensions.py", line 10, in <module>
extensions_dir = os.path.join(paths.data_path, "extensions")
AttributeError: module 'modules.paths' has no attribute 'data_path'
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 16
- Comments: 17
I made a temp fix. (Temp, don’t do hardlinking in real code)
in
sd/stable-diffusion-webui/modules/paths.pyPaste:data_path = "/content/gdrive/MyDrive/sd/stable-diffusion-webui/" # or some your custom path to stable-diffusion-webui folderEDIT: comment this line:
!wget -O paths.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/paths.pyin Start Stable-Diffusion code chunkI often wonder why no one made a stable and beta branches
Doesn’t work for me. Can we really not disable updates? This thing breaks 2-3 times a week.
Also, thanks be to the (likely sleepy) divines
Waiting for divine help 🫠🫠
had the same problem, i hope it will be fix soon