d8ahazard / sd_dreambooth_extension

Other
1.85k stars 281 forks source link

[Bug]: AssertionError: extension access disabled because of command line flags #1361

Closed tensorain closed 9 months ago

tensorain commented 9 months ago

Is there an existing issue for this?

What happened?

Upon attempting to install extension I get this error in terminal:

Error completing request Arguments: ('https://github.com/d8ahazard/sd_dreambooth_extension.git', [], 0, '') {} Traceback (most recent call last): File "/home/sds/SD/stable-diffusion-webui/modules/call_queue.py", line 57, in f res = list(func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 397, in install_extension_from_index ext_table, message = install_extension_from_url(None, url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 339, in install_extension_from_url check_access() File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 23, in check_access assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags" AssertionError: extension access disabled because of command line flags


Steps to reproduce the problem

  1. Go to a1111 webui, follow instructions for install
  2. Click install next to Dreambooth "Dreambooth training based on Shivam Shiaro's repo, optimized for lower-VRAM GPUs"
  3. See WebUI terminal for assertion erro

Commit and libraries

Starting at Initializing Dreambooth and ending several lines below at [+] bitsandbytes version 0.35.4 installed..

Command Line Arguments

No

Console logs

(base) sds@4sd4090:~/SD/stable-diffusion-webui$ bash webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on sds user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.11.4 (main, Jul  5 2023, 14:15:25) [GCC 11.2.0]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --cors-allow-origins=* --xformers --opt-sdp-attention --no-half-vae --listen --api
Loading weights [31e35c80fc] from /home/sds/SD/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0 (copy).safetensors
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 3.4s (prepare environment: 0.7s, import torch: 1.0s, import gradio: 0.3s, setup paths: 0.6s, other imports: 0.2s, setup codeformer: 0.1s, load scripts: 0.1s, create ui: 0.2s).
Creating model from config: /home/sds/SD/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Applying attention optimization: xformers... done.
Model loaded in 2.0s (load weights from disk: 0.6s, create model: 0.3s, apply weights to model: 0.9s).
*** Error completing request
*** Arguments: ('https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/Extensions-index.md', [], 2) {}
    Traceback (most recent call last):
      File "/home/sds/SD/stable-diffusion-webui/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 408, in refresh_available_extensions
        with urllib.request.urlopen(url) as response:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 525, in open
        response = meth(req, response)
                   ^^^^^^^^^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 634, in http_response
        response = self.parent.error(
                   ^^^^^^^^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 563, in error
        return self._call_chain(*args)
               ^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 496, in _call_chain
        result = func(*args)
                 ^^^^^^^^^^^
      File "/home/sds/anaconda3/lib/python3.11/urllib/request.py", line 643, in http_error_default
        raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 400: Bad Request

---
*** Error completing request
*** Arguments: ('https://github.com/d8ahazard/sd_dreambooth_extension.git', [], 0, '') {}
    Traceback (most recent call last):
      File "/home/sds/SD/stable-diffusion-webui/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 397, in install_extension_from_index
        ext_table, message = install_extension_from_url(None, url)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 339, in install_extension_from_url
        check_access()
      File "/home/sds/SD/stable-diffusion-webui/modules/ui_extensions.py", line 23, in check_access
        assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags"
    AssertionError: extension access disabled because of command line flags

---

Additional information

No response

tensorain commented 9 months ago

was not manually installed per instructions