-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
On my Linux system if "output" directory is a link the following error shows in terminal. The progress, status, preview, and statistics do not function properly either. A real directory does not show error or have any other issues.
[DEBUG] clip.hpp:401 - token ,
[DEBUG] clip.hpp:304 - token length: 154
Traceback (most recent call last):
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/queueing.py", line 667, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/route_utils.py", line 349, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<11 lines>...
)
^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/blocks.py", line 2284, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/blocks.py", line 2068, in postprocess_data
await processing_utils.async_move_files_to_cache(
...<3 lines>...
)
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/processing_utils.py", line 676, in async_move_files_to_cache
return await client_utils.async_traverse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
data, _move_to_cache, client_utils.is_file_obj_with_meta
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio_client/utils.py", line 1206, in async_traverse
new_obj.append(await async_traverse(item, func, is_root))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio_client/utils.py", line 1201, in async_traverse
new_obj[key] = await async_traverse(value, func, is_root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio_client/utils.py", line 1197, in async_traverse
return await func(json_obj)
^^^^^^^^^^^^^^^^^^^^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/processing_utils.py", line 647, in _move_to_cache
_check_allowed(payload.path, check_in_upload_folder)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nightstalker/LLM/sd.cpp-webui/venv/lib/python3.13/site-packages/gradio/processing_utils.py", line 592, in _check_allowed
raise InvalidPathError(msg)
gradio.exceptions.InvalidPathError: Cannot move /home/nightstalker/LLM/sd.cpp-webui/outputs/txt2img/20251218_114806_144115_preview.png to the gradio cache dir because it was not created by the application or it is not located in either the current working directory or your system's temp directory. To fix this error, please ensure your function returns files located in either the current working directory (/home/nightstalker/LLM/sd.cpp-webui), your system's temp directory (/tmp) or add /home/nightstalker/LLM/sd.cpp-webui/outputs/txt2img to the allowed_paths parameter of launch().
And thank you for this wonderful tool, it has been fun exploring its capabilities.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request