Open kingyoolee opened 1 year ago
Delete venv folder and restart UI. Let A1111 redo an installation of venv.
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
@lamarsha , you're my hero. I did a simple pip install bitsandbytes
, and was wondering why it was looking for libcudart.so on a Windows machine. I guess I know, now :)
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
This worked great for me too. Yet, this bug really needs to be fixed.
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
Try his fix first, if it does not work, try this: "pip uninstall bitsandbytes
" and "pip uninstall bitsandbytes-windows
" and then, go in "venv>Lib>site-packages" and delete the 2 bitsandbytes folders. No need to nuke the whole venv folder :)
Edit: Still not fixed
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
Try his fix first, if it does not work, try this: "
pip uninstall bitsandbytes
" and "pip uninstall bitsandbytes-windows
" and then, go in "venv>Lib>site-packages" and delete the 2 bitsandbytes folders. No need to nuke the whole venv folder :)
I've tried all of this and it still won't launch... PLEASE help me
Some people having this problem ended up at bitsandbytes. That's why I linked tho this issue. It's not really bitsnbytes' fault.
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
worked for me! thx
So after failing to pinpoint the issue, I ended up making a fresh new install of A1111, everything worked! So problem was some broken package within an extension. I painstakingly installed every single package that I used and stored a record of packages with their versions after every install. And then checked if simple txt_to_img generation worked. After wasting 2 hrs behind this, I found the culprit, who was none other than the infamous dreambooth_extension. As soon as I installed the dreambooth_extension, the error appeared. So here is how to fix this: (Requires deleting dreambooth_extension)
venv\Scripts\activate
pip uninstall -r extensions/sd_dreambooth_extension/requirements.txt -y
(not required, but removes unwanted packages)If this still does not solve your problem, then you can crosscheck the versions of you packages with mine:
pip freeze > package.txt
These are the list of the packages that are currently installed with extensions
Installed Extensions
Edit: also found this following discussion in the dreambooth_extension github.
- Delete the dreambooth_extension folder: extensions>sd_dreambooth_extension
- Go to: venv\Lib\site-packages
- Delete both folders of bitsandbytes
- Delete both folders of transformers
uninstalling bitsandbytes using pip was not enough to fix the problem, but this solution works for me. I'm on Ubuntu 22.04. Thanks! @Sniper199999
I got this same error when I was trying 1.6 RC - ran the below and seems to have fixed
pip install bitsandbytes-windows
thx,works for me.
Is there an existing issue for this?
What happened?
venv "KYstudio\Scripts\Python.exe" Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Checking roop requirements Install insightface==0.7.3 Installing sd-webui-roop requirement: insightface==0.7.3 Install onnx==1.14.0 Installing sd-webui-roop requirement: onnx==1.14.0 Install onnxruntime==1.15.0 Installing sd-webui-roop requirement: onnxruntime==1.15.0 Install opencv-python==4.7.0.72 Installing sd-webui-roop requirement: opencv-python==4.7.0.72 Launching Web UI with arguments: --xformers --no-half-vae --port 44444
===================================BUG REPORT=================================== Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so False D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} warn(msg) CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} warn(msg) CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine! D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)! warn(msg) D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: No GPU detected! Check your CUDA paths. Proceeding to load CPU-only library... warn(msg) CUDA SETUP: Loading binary D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected. CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig. CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following: CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc Traceback (most recent call last): File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\kingy\AppData\Local\Programs\Python\Python310\lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\transformers\modeling_utils.py", line 85, in
from accelerate import version as accelerate_version
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\accelerate__init.py", line 3, in
from .accelerator import Accelerator
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\accelerate\accelerator.py", line 35, in
from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\accelerate\utils\ init.py", line 131, in
from .bnb import has_4bit_bnb_layers, load_and_quantize_model
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\accelerate\utils\bnb.py", line 42, in
import bitsandbytes as bnb
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\ init__.py", line 6, in
from . import cuda_setup, utils, research
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\research\ init.py", line 1, in
from . import nn
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\research\nn\ init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\optim\ init__.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\bitsandbytes\cextension.py", line 20, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "D:\stale diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "D:\stale diffusion\stable-diffusion-webui\launch.py", line 44, in main
start()
File "D:\stale diffusion\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
import webui
File "D:\stale diffusion\stable-diffusion-webui\webui.py", line 13, in
initialize.imports()
File "D:\stale diffusion\stable-diffusion-webui\modules\initialize.py", line 16, in imports
import pytorch_lightning # noqa: F401
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\pytorch_lightning__init.py", line 35, in
from pytorch_lightning.callbacks import Callback # noqa: E402
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\pytorch_lightning\callbacks__init.py", line 14, in
from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in
from pytorch_lightning.callbacks.callback import Callback
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in
from torchmetrics import Metric
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\torchmetrics__init.py", line 14, in
from torchmetrics import functional # noqa: E402
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\torchmetrics\functional\ init__.py", line 82, in
from torchmetrics.functional.text.bleu import bleu_score
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\torchmetrics\functional\text\ init__.py", line 30, in
from torchmetrics.functional.text.bert import bert_score # noqa: F401
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\torchmetrics\functional\text\bert.py", line 24, in
from torchmetrics.functional.text.helper_embedding_metric import (
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 26, in
from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase
File "", line 1075, in _handle_fromlist
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr__
module = self._get_module(self._class_to_module[name])
File "D:\stale diffusion\stable-diffusion-webui\KYstudio\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
press any key continue. . .
Steps to reproduce the problem
After updating to 1. 6, I encountered a problem when starting the web UI
What should have happened?
Everything is normal before upgrading
Sysinfo
windows 11
What browsers do you use to access the UI ?
Google Chrome
Console logs
Additional information
No response