Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ERROR:pdf2zh.converter:'dict' object has no attribute 'message' #981

Copy link
Copy link
@h9052300

Description

@h9052300
Issue body actions

在提问之前...

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

使用的环境

请选择安装方式

pip

描述你的问题

C:\Users\x1090102>set OLLAMA_HOST=http://192.168.204.34:11434

C:\Users\x1090102>pdf2zh -li en -lo zh-TW -s ollama:cogito:32b "C:\Users\x1090102\Desktop\CCTV 系統入門.pdf"
not in git repo
Namespace(files=['C:\Users\x1090102\Desktop\CCTV 系統入門.pdf'], debug=False, pages=None, vfont='', vchar='', lang_in='en', lang_out='zh-TW', service='ollama:cogito:32b', output='', thread=4, interactive=False, share=False, flask=False, celery=False, authorized=None, prompt=None, compatible=False, onnx=None, serverport=None, dir=False, config=None, babeldoc=False, skip_subset_fonts=False, ignore_cache=False, mcp=False, sse=False)
[06/12/25 16:18:47] INFO INFO:pdf2zh.high_level:use font: high_level.py:423
C:/Users/x1090102/.cache/babeldoc/fonts/SourceHanSerifTW-Regular.ttf
3%|██▏ | 3/112 [00:05<03:33, 1.96s/it][06/12/25 16:19:19] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:19:31] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:19:44] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:19:57] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:20:09] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:20:22] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:20:34] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:20:47] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:21:00] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:21:12] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:21:25] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357
[06/12/25 16:21:38] ERROR ERROR:pdf2zh.converter:'dict' object has no attribute 'message' converter.py:357

如何复现

  1. 执行 '...'
  2. 选择 '....'
  3. 出现问题

预期行为

No response

相关 Logs


原始PDF文件

No response

还有别的吗?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.