{"record":{"id":"2f09e1bfeb36e723","repo":"docling-project/docling","slug":"could-not-determine-docling-version-from-pyproject","errorCode":null,"errorMessage":"Could not determine Docling version from pyproject.toml","messagePattern":"Could not determine Docling version from pyproject\\.toml","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"perfs/xlsx_merged_cells.py","lineNumber":93,"sourceCode":"        default=DEFAULT_MERGE_COUNTS,\n        help=\"Merged-range counts to benchmark.\",\n    )\n    parser.add_argument(\n        \"--output\",\n        type=Path,\n        help=\"Optional JSONL output path; results are always written to stdout.\",\n    )\n    return parser.parse_args()\n\n\ndef _runtime_info() -> RuntimeInfo:\n    repository_root = Path(__file__).resolve().parents[1]\n    pyproject_text = (repository_root / \"pyproject.toml\").read_text(encoding=\"utf-8\")\n    version_match = re.search(\n        r'^version\\s*=\\s*\"([^\"]+)\"', pyproject_text, flags=re.MULTILINE\n    )\n    if version_match is None:\n        raise RuntimeError(\"Could not determine Docling version from pyproject.toml\")\n\n    git_result = subprocess.run(\n        [\"git\", \"rev-parse\", \"HEAD\"],\n        check=True,\n        capture_output=True,\n        cwd=repository_root,\n        text=True,\n        timeout=10,\n    )\n    return RuntimeInfo(\n        python_version=platform.python_version(),\n        platform=platform.platform(),\n        docling_version=version_match.group(1),\n        commit_sha=git_result.stdout.strip(),\n    )\n\n\ndef _create_workbook(path: Path, *, merge_count: int) -> float:","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/docling-project/docling/blob/61d76f1ff3f8428065465889f7b4577da7df704c/perfs/xlsx_merged_cells.py#L75-L111","documentation":"Error \"Could not determine Docling version from pyproject.toml\" thrown in docling-project/docling.","triggerScenarios":"Raised by perfs/xlsx_merged_cells.py when the benchmark script cannot parse a version string out of the repository's pyproject.toml.","commonSituations":"Running the benchmark from a copied or partial checkout where pyproject.toml is missing, unreadable, or does not contain a 'version = \"...\"' line.","solutions":["Ensure pyproject.toml at the repository root contains a top-level `version = \"...\"` entry; the script reads it with a regex matching `^version\\s*=\\s*\"([^\"]+)\"`.","Run the script from a checkout of the docling repository so that Path(__file__).resolve().parents[1] points at the repo root containing pyproject.toml.","Check that pyproject.toml is readable and that its [project] section declares a plain `version` string rather than dynamic versioning."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"61d76f1ff3f8428065465889f7b4577da7df704c","analyzedAt":"2026-08-14T23:53:18.727Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}