Skip to content

Upload document error #5

@charles331

Description

@charles331

Hello,

I try to upload a document on windows 11 and got an error:
image

details of error:

app | Traceback (most recent call last):
app | File "/usr/local/lib/python3.11/shutil.py", line 853, in move
app | os.rename(src, real_dst)
app | FileNotFoundError: [Errno 2] No such file or directory: '/tmp/gradio/ea1957b6a8b742a53875fec0a987901ef9e06d26/Data_Exchange_Technical_Guide.pdf' -> '/code/data/data/Data_Exchange_Technical_Guide.pdf'
app |
app | During handling of the above exception, another exception occurred:
app |
app | Traceback (most recent call last):
app | File "/usr/local/lib/python3.11/site-packages/gradio/queueing.py", line 521, in process_events
app | response = await route_utils.call_process_api(
app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/gradio/route_utils.py", line 276, in call_process_api
app | output = await app.get_blocks().process_api(
app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1945, in process_api
app | result = await self.call_function(
app | ^^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1513, in call_function
app | prediction = await anyio.to_thread.run_sync(
app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
app | return await get_async_backend().run_sync_in_worker_thread(
app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
app | return await future
app | ^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 859, in run
app | result = context.run(func, *args)
app | ^^^^^^^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 831, in wrapper
app | response = f(*args, **kwargs)
app | ^^^^^^^^^^^^^^^^^^
app | File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 831, in wrapper
app | response = f(*args, **kwargs)
app | ^^^^^^^^^^^^^^^^^^
app | File "/code/rag_chatbot/ui/ui.py", line 209, in _processing_document
app | shutil.move(src=file_path, dst=dest)
app | File "/usr/local/lib/python3.11/shutil.py", line 873, in move
app | copy_function(src, real_dst)
app | File "/usr/local/lib/python3.11/shutil.py", line 448, in copy2
app | copyfile(src, dst, follow_symlinks=follow_symlinks)
app | File "/usr/local/lib/python3.11/shutil.py", line 258, in copyfile
app | with open(dst, 'wb') as fdst:
app | ^^^^^^^^^^^^^^^
app | FileNotFoundError: [Errno 2] No such file or directory: '/code/data/data/Data_Exchange_Technical_Guide.pdf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions