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

[HELP NEEDED]: FileNotFoundError raised when more than one download process is cancelled #29

Open
etherealxx opened this issue May 3, 2023 · 0 comments

Comments

@etherealxx
Copy link
Owner

Whenever i tried to download more than 1 link, for example

https://civitai.com/models/10028/neverending-dream
https://civitai.com/models/43331/majicmix-realistic

and i cancel it midway using the cancel button, it'll raise this error

BatchLinks Downloads starting...

https://civitai.com/models/10028/neverending-dream
[#100615 816MiB/3.9GiB(20%) CN:16 DL:165MiB ETA:19s]

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
100615|INPR|   154MiB/s|/content/stable-diffusion-webui/models/Stable-diffusion/neverendingDreamNED_bakedVae.safetensors

Status Legend:
(INPR):download in-progress.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

Removed incomplete download: /content/stable-diffusion-webui/models/Stable-diffusion/neverendingDreamNED_bakedVae.safetensors.aria2
Removed incomplete download: /content/stable-diffusion-webui/models/Stable-diffusion/neverendingDreamNED_bakedVae.safetensors
Operation Cancelled

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1018, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 956, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 2608, in postprocess
    dataframe = pd.read_csv(y)
  File "/usr/local/lib/python3.10/dist-packages/pandas/util/_decorators.py", line 211, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/pandas/util/_decorators.py", line 331, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py", line 950, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py", line 605, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py", line 1442, in __init__
    self._engine = self._make_engine(f, self.engine)
  File "/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py", line 1735, in _make_engine
    self.handles = get_handle(
  File "/usr/local/lib/python3.10/dist-packages/pandas/io/common.py", line 856, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'p'

This error doesn't break the gradio UI though, and you can continue to use the UI like before. However this error won't show if only one link is processed on the box. For example:

https://civitai.com/models/10028/neverending-dream

I tried to find the root of the problem, but sadly i can't. Perhaps someone else can, would be very helpful and appreciated🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant