lllyasviel / lllyasviel/FramePack

gradio file movement error

Open
#35 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
17.3k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I have the outputs folder symlinked to a scratch drive in order to avoid writing excessively to an SSD and I do have GRADIO_TEMP_DIR variable configured and pointed to the same drive. After the first video set there's this error:

Moving DynamicSwap_HunyuanVideoTransformer3DModelPacked to cuda:0 with preserved memory: 12 GB

Traceback (most recent call last):
File "G:\FramePack\venv\Lib\site-packages\gradio\queueing.py", line 715, in process_events
response = await route_utils.call_process_api(
File "G:\FramePack\venv\Lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "G:\FramePack\venv\Lib\site-packages\gradio\blocks.py", line 2147, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
File "G:\FramePack\venv\Lib\site-packages\gradio\blocks.py", line 1945, in postprocess_data
await processing_utils.async_move_files_to_cache(
File "G:\FramePack\venv\Lib\site-packages\gradio\processing_utils.py", line 648, in async_move_files_to_cache
return await client_utils.async_traverse(
File "G:\FramePack\venv\Lib\site-packages\gradio_client\utils.py", line 1133, in async_traverse
new_obj[key] = await async_traverse(value, func, is_root)
File "G:\FramePack\venv\Lib\site-packages\gradio_client\utils.py", line 1129, in async_traverse
return await func(json_obj)
File "G:\FramePack\venv\Lib\site-packages\gradio\processing_utils.py", line 619, in _move_to_cache
_check_allowed(payload.path, check_in_upload_folder)
File "G:\FramePack\venv\Lib\site-packages\gradio\processing_utils.py", line 564, in _check_allowed
raise InvalidPathError(msg)
gradio.exceptions.InvalidPathError: Cannot move G:\FramePack\outputs\250417_164644_825_505_9.mp4 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 (G:\FramePack), your system's temp directory (C:\Users\user\AppData\Local\Temp) or add G:\FramePack\outputs to the allowed_paths parameter of launch().

after that the UI shows 'error' in preview, but the generation process continues.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the application launch configuration and the code that returns generated files under G:\FramePack\outputs, then compare those paths with Gradio's allowed_paths and cache requirements shown in the traceback. Reproduce the issue after the first video set; done means the generated MP4 appears in the UI preview without an InvalidPathError while generation continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.