Byaidu / PDFMathTranslate

PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

Home Page:https://pdf2zh.com

Repository from Github https://github.comByaidu/PDFMathTranslateRepository from Github https://github.comByaidu/PDFMathTranslate

无法翻译,预览页显示错误,日志显示No such file or directory

zousiyu1995 opened this issue · comments

在提问之前...

  • 我已经尝试了PDFMathTranslate-next,并在PDFMathTranslate-next提交了issue
  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经认真且完整的阅读了 wiki
  • 我已经认真检查了问题和网络环境无关(包括但不限于Google不可用,模型下载失败)

使用的环境

**os**:Windows 11版本24H2(OS内部版本26100.4946)
**pdf2zh**: 1.9.1

请选择安装方式

exe

描述你的问题

无法翻译,预览页显示错误,日志显示No such file or directory

Image

如何复现

  1. 执行pdf2zh.exe
  2. 选择pdf文件
  3. 点击翻译按钮

预期行为

No response

相关 Logs

not in git repo
find offline_assets_zip file:  offline_assets_b2d2d00982467f3c5e01af1084a7e83d4ff16fff93704ad1300b6c0a892a8eb5.zip  try restore...
[08/14/25 17:20:48] INFO     INFO:babeldoc.docvision.doclayout:Loading ONNX model...                     doclayout.py:47
                    INFO     INFO:babeldoc.docvision.doclayout:Available Provider: CPUExecutionProvider doclayout.py:118
* Running on local URL:  http://0.0.0.0:7860
* To create a public link, set `share=True` in `launch()`.
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "shutil.py", line 847, in move
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'C:\\Users\\zousiyu\\AppData\\Local\\Temp\\tmppieigeiy' -> 'C:\\Users\\zousiyu\\AppData\\Local\\Temp\\gradio\\8bf5bbec74c5c0a527c5177b16f1560c016e9ad4711c5b98994c3a873ae35fad\\Romas Baronas - 2025 - Non-monotonic effect of substrate inhibition in conjunction with diffusion limitation on the response of amperometric biosensors.pdf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\bin\pdf2zh\build\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\middleware\errors.py", line 187, in __call__
    raise exc
  File "D:\bin\pdf2zh\build\site-packages\starlette\middleware\errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "D:\bin\pdf2zh\build\site-packages\gradio\route_utils.py", line 856, in __call__
    await self.simple_response(scope, receive, send, request_headers=headers)
  File "D:\bin\pdf2zh\build\site-packages\gradio\route_utils.py", line 872, in simple_response
    await self.app(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "D:\bin\pdf2zh\build\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "D:\bin\pdf2zh\build\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "D:\bin\pdf2zh\build\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "D:\bin\pdf2zh\build\site-packages\starlette\routing.py", line 74, in app
    await response(scope, receive, send)
  File "D:\bin\pdf2zh\build\site-packages\starlette\responses.py", line 160, in __call__
    await self.background()
  File "D:\bin\pdf2zh\build\site-packages\starlette\background.py", line 41, in __call__
    await task()
  File "D:\bin\pdf2zh\build\site-packages\starlette\background.py", line 28, in __call__
    await run_in_threadpool(self.func, *self.args, **self.kwargs)
  File "D:\bin\pdf2zh\build\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
    return await anyio.to_thread.run_sync(func)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\anyio\_backends\_asyncio.py", line 967, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\bin\pdf2zh\build\site-packages\gradio\route_utils.py", line 747, in move_uploaded_files_to_cache
    shutil.move(file, dest)
  File "shutil.py", line 867, in move
  File "shutil.py", line 460, in copy2
FileNotFoundError: [WinError 3] 系统找不到指定的路径。

原始PDF文件

No response

还有别的吗?

No response