Skip to content

麻烦看一下这个报错ValueError: not enough values to unpack (expected 2, got 1) #243

@Infinite-Unexpired-Love

Description

版本:0.2.7
sequence目录下的state.yaml文件:

created_at: '2025-08-28 02:32:37'
payload:
  completed_ranges: []
  max_request_data_tokens: 4096
  max_verify_paragraph_tokens: 512
  max_verify_paragraphs_count: 8
  phase: completed
updated_at: '2025-08-28 08:11:53'
version: 1.0.1

目前sequence目录下有extraction(有文件)、footnote-joint(空)、output(有文件)、text-joint(有文件)文件夹。
correction目录下的text文件夹为空。
此时报错栈栈底为:
File "C:\Users\Dragonfly.conda\envs\pdf2epub\lib\site-packages\pdf_craft\analysers\correction\common.py", line 47, in extract_lines
id1, id2 = layout_id.split("/", maxsplit=1)
ValueError: not enough values to unpack (expected 2, got 1)

调用程序:

  analyse(
    llm=llm,  # 第二步配置的 LLM 对象
    pdf_page_extractor=extractor,  # 第一步创建的 PDFPageExtractor 对象
    pdf_path=Path("D:\\BaiduNetdiskDownload\\132455.pdf"),  # PDF 文件路径
    analysing_dir_path=Path("E:\\CodeLib\\PYTHON\\pdf2epub\\analyse"),  # 分析中间状态存储目录
    output_dir_path=Path("E:\\CodeLib\\PYTHON\\pdf2epub\\rawdata"),  # 分析结果存储目录
    correction_mode=CorrectionMode.ONCE,
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions