You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due platform updates to Ubuntu 24.04 LTS test execution seems to break with Python 3.12 venv module (and probably further) yielding failures alike
(venv) gitlab-runner@ocr-worker08:~/builds/S8PSLJK8v/0/ulb/ulb-ocr-odem-internal/ocrd-odem$ pytest -v
ImportError while loading conftest '/home/gitlab-runner/builds/S8PSLJK8v/0/ulb/ulb-ocr-odem-internal/ocrd-odem/tests/conftest.py'.
tests/conftest.py:15: in <module>
from lib import odem
lib/odem/__init__.py:8: in <module>
from .odem_workflow import (
lib/odem/odem_workflow.py:16: in <module>
import lib.odem.ocr.ocrd as odem_ocrd
lib/odem/ocr/ocrd.py:7: in <module>
from ocrd.resolver import (
../venv/lib/python3.12/site-packages/ocrd/__init__.py:17: in <module>
from ocrd.processor.base import run_processor, run_cli, Processor
../venv/lib/python3.12/site-packages/ocrd/processor/__init__.py:1: in <module>
from .base import (
../venv/lib/python3.12/site-packages/ocrd/processor/base.py:21: in <module>
from ocrd.workspace import Workspace
../venv/lib/python3.12/site-packages/ocrd/workspace.py:49: in <module>
from .mets_server import ClientSideOcrdMets
../venv/lib/python3.12/site-packages/ocrd/mets_server.py:16: in <module>
from fastapi import FastAPI, Request, Form, Response
../venv/lib/python3.12/site-packages/fastapi/__init__.py:7: in <module>
from .applications import FastAPI as FastAPI
../venv/lib/python3.12/site-packages/fastapi/applications.py:16: in <module>
from fastapi import routing
../venv/lib/python3.12/site-packages/fastapi/routing.py:24: in <module>
from fastapi import params
../venv/lib/python3.12/site-packages/fastapi/params.py:5: in <module>
from fastapi.openapi.models import Example
../venv/lib/python3.12/site-packages/fastapi/openapi/models.py:124: in <module>
class Schema(BaseModelWithConfig):
pydantic/main.py:292: in pydantic.main.ModelMetaclass.__new__
???
pydantic/main.py:813: in pydantic.main.BaseModel.__try_update_forward_refs__
???
pydantic/typing.py:566: in pydantic.typing.update_model_forward_refs
???
pydantic/typing.py:532: in pydantic.typing.update_field_forward_refs
???
pydantic/typing.py:75: in pydantic.typing.evaluate_forwardref
???
E TypeError: ForwardRef._evaluate() got an unexpected keyword argument 'type_params'
The text was updated successfully, but these errors were encountered:
Description
Due platform updates to Ubuntu 24.04 LTS test execution seems to break with Python 3.12 venv module (and probably further) yielding failures alike
The text was updated successfully, but these errors were encountered: