paddlepaddle has no Python 3.14 (cp314) wheel on PyPI, so host-agent
deployments on 3.14 can never install it, causing OCR to fail at
runtime with RuntimeError. Pin the workspace to Python 3.13 across
all pyproject.toml files, the Docker base image, and the Jenkins CI
image; regenerate uv.lock against 3.13.
Also fixes a pre-existing Python-2-style `except X, Y:` syntax error
(invalid in all Python 3.x) in runtime/task.py and
packages/cloud-platform/cloud/{sql_repository,internal_api/api}.py,
introduced in 22d37ca9 and unrelated to this change's scope, which
blocked the full test suite from collecting on any interpreter
version.
openspec change: downgrade-python-3-13-paddleocr
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ class TaskRunner:
|
||||
def _planner_accepts(self, name: str) -> bool:
|
||||
try:
|
||||
parameters = signature(self.planner.plan).parameters
|
||||
except TypeError, ValueError:
|
||||
except (TypeError, ValueError):
|
||||
return True
|
||||
return name in parameters or any(
|
||||
parameter.kind is Parameter.VAR_KEYWORD for parameter in parameters.values()
|
||||
|
||||
Reference in New Issue
Block a user