Skip to content

Not compatible with fast api > 137  #74

Description

@valentingarreau-del

When i update fastapi to 140 got this error :

ImportError while loading conftest '/home/runner/work/////tests/conftest.py'.
tests/conftest.py:23: in
from spark_ai.api_consumer.main import app
src/
/*/main.py:81: in
versions = Versionizer(
../../.venv/lib/python3.14/site-packages/fastapi_versionizer/versionizer.py:105: in init
self._strip_routes()
../../.venv/lib/python3.14/site-packages/fastapi_versionizer/versionizer.py:366: in _strip_routes
getattr(route, 'path') in paths_to_keep
^^^^^^^^^^^^^^^^^^^^^^
E AttributeError: '_IncludedRouter' object has no attribute 'path'

Look like _IncludedRouter is used for old version of fastapi

fastapi/fastapi#15782

can we get an update please ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions