Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Many errors after installing and uninstalling an extension #6664

Closed
1 task done
UBBK opened this issue Jan 12, 2023 · 7 comments
Closed
1 task done

[Bug]: Many errors after installing and uninstalling an extension #6664

UBBK opened this issue Jan 12, 2023 · 7 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@UBBK
Copy link

UBBK commented Jan 12, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Everything was working fine till i tried to make lora work. Kept getting memory errors. Then gave up on it but now even after removing the extension for it it:
-takes around 3 times to start webui.

  • webui gives "Spacy not installed, attention generator will not work. Install with pip install dynamicprompts[attentiongrabber]" error at the beginning when you start

  • "Send to img2img" button gives following error:

    Traceback (most recent call last):
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 321, in run_predict
    output = await app.blocks.process_api(
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
    result = await self.call_function(fn_index, inputs, iterator, request)
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 856, in call_function
    prediction = await anyio.to_thread.run_sync(
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
    File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
    result = context.run(func, *args)
    File "E:...\Newfolder\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 113, in send_image_and_dimensions
    img = image_from_url_text(x)
    File "E:...\Newfolder\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 60, in image_from_url_text
    image = Image.open(io.BytesIO(filedata))
    File "E:...\Newfolder\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3283, in open
    raise UnidentifiedImageError(msg)
    PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000028DD46F32E0>

Steps to reproduce the problem

  1. Go to .... webui.bat
  2. Press ....Start
  3. ... Error messages and problems occur

What should have happened?

  1. Go to .... webui.bat
  2. Press ....Start
  3. Work as usual

Commit where the problem happens

Commit hash: 0b8911d

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--medvram

Additional information, context and logs

Traceback (most recent call last):
File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File "E:...\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 856, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:...\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:...\Newfolder\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 113, in send_image_and_dimensions
img = image_from_url_text(x)
File "E:...\Newfolder\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 60, in image_from_url_text
image = Image.open(io.BytesIO(filedata))
File "E:...\Newfolder\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3283, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000028DD46F32E0>

@UBBK UBBK added the bug-report Report of a bug, yet to be confirmed label Jan 12, 2023
@mezotaken
Copy link
Collaborator

Clear extensions folder, remove venv folder and restart.

@UBBK
Copy link
Author

UBBK commented Jan 12, 2023

Restarting UI...
Loading booru2prompt settings
Spacy not installed, attention generator will not work. Install with pip install dynamicprompts[attentiongrabber]
Error executing callback ui_tabs_callback for E:\aiiiiiii\25.12\Newfolder\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\scripts\tagger.py
Traceback (most recent call last):
File "E:...\stable-diffusion-webui\modules\script_callbacks.py", line 104, in ui_tabs_callback
res += c.callback() or []
File "E:...\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\scripts\tagger.py", line 353, in on_ui_tabs
interrogator_names = refresh_interrogators()
File "E:...\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\scripts\tagger.py", line 50, in refresh_interrogators
for path in os.scandir(shared.cmd_opts.deepdanbooru_projects_path):
AttributeError: 'Namespace' object has no attribute 'deepdanbooru_projects_path'

even after fresh venv and extension still get errors for whatever extension i install

@UBBK
Copy link
Author

UBBK commented Jan 12, 2023

and followinng these steps now gave me yet another error:
"-Open cmd again in your main "stable-diffusion-webui" folder
2-Type venv\Scripts\activate
3-Then type pip install -r requirements.txt

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
open-clip-torch 2.7.0 requires protobuf==3.20.0, but you have protobuf 3.20.3 which is incompatible.
dynamicprompts 0.2.6 requires requests<3.0.0,>=2.28.1, but you have requests 2.25.1 which is incompatible.

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 12, 2023

That is unusual. I thought fresh venv should solve it, since it works for me.
image
I have no idea how to replicate this.
What is your python version? I think it's 3.10, since you know your way around, but just to make sure...

@UBBK
Copy link
Author

UBBK commented Jan 12, 2023

ok i did a complete fresh install of webui. Spacy error and speed issue is gone. but send2img button still gives exact same error. Is this external? Is my python or something else corrupted.

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 12, 2023

Send to img2img is broken for any tab, or just for image browser or something? I don't think this is external. Send button has been broken for quite some time, and currently it doesn't work for me when i do it from extras tab. Recent commit broke sending even more.
#6541 but the error this PR tries to fix is different from yours somehow.

@catboxanon
Copy link
Collaborator

Closing as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

3 participants