stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]:

Open StreamHubHub opened this issue 1 year ago • 1 comments

Checklist

  • [ ] The issue exists after disabling all extensions
  • [x] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [x] The issue exists in the current version of the webui
  • [ ] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

i can generate pictures, i have a clean instalattion

Steps to reproduce the problem

  1. I Write Prompt
  2. Click on Generate

What should have happened?

It should have created a picture

What browsers do you use to access the UI ?

Microsoft Edge

Sysinfo

sysinfo-2025-02-18-09-57.json

Console logs

Traceback (most recent call last):█████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.08it/s]
  File "C:\Users\aleja\Downloads\Programs\IA\sd\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\aleja\Downloads\Programs\IA\sd\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "C:\Users\aleja\Downloads\Programs\IA\sd\venv\lib\site-packages\gradio\blocks.py", line 1335, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\Users\aleja\Downloads\Programs\IA\sd\venv\lib\site-packages\gradio\components\gallery.py", line 197, in postprocess
    file_path = str(utils.abspath(file))
  File "C:\Users\aleja\Downloads\Programs\IA\sd\venv\lib\site-packages\gradio\utils.py", line 938, in abspath
    if is_symlink or path == path.resolve():  # in case path couldn't be resolved
  File "C:\Users\aleja\anaconda3\lib\pathlib.py", line 1215, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "C:\Users\aleja\anaconda3\lib\pathlib.py", line 215, in resolve
    s = self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos: 'outputs\\txt2img-images\\2025-02-18\\00002-1888406001.png?1739872343.8075917'

Additional information

No response

StreamHubHub avatar Feb 18 '25 09:02 StreamHubHub

I believe the image is currently generated and saved to outputs\txt2img-images\2025-02-18\00002-1888406001.png the issue occurs when it's trying to send the image to the browser

from what I can tell the cause is for some reason on your computer

from pathlib import Path
Path('outputs\\txt2img-images\\2025-02-18\\00002-1888406001.png?1739872343.8075917').resolve()

this errors, as a result preventing it from being displayed in the browser

this works on other computers I have tested

unfortunately I wasn't able to reproduce the issue even using python 3.9.13 I suspect there's something "different" at the low level on your computer but I'm not sure what's going on

I would suggest you try python 3.10 or try using our standalone package see wiki Windows (method 1)

w-e-w avatar Feb 19 '25 03:02 w-e-w