Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict Python Venv Version #27

Open
M3ssman opened this issue Jan 8, 2025 · 0 comments
Open

Restrict Python Venv Version #27

M3ssman opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@M3ssman
Copy link
Member

M3ssman commented Jan 8, 2025

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

(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'
@M3ssman M3ssman added the bug Something isn't working label Jan 8, 2025
@M3ssman M3ssman self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant