Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Closed
Description
New issue in the3.15 release where if you usegenerateschema and have a list in your output you will get aModuleNotFound error.
> [19/21] RUN poetry run python manage.py generateschema --file /code/templates/openapi-schema.yml: 2.585 Traceback (most recent call last): 2.586 File "/code/manage.py", line 22, in <module> 2.587 main() 2.588 File "/code/manage.py", line 18, in main 2.589 execute_from_command_line(sys.argv)2.590 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line2.590 utility.execute()2.591 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute2.592 self.fetch_command(subcommand).run_from_argv(self.argv)2.593 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/django/core/management/base.py", line 412, in run_from_argv2.593 self.execute(*args, **cmd_options)2.594 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/django/core/management/base.py", line 458, in execute2.595 output = self.handle(*args, **options)2.596 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2.600 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/rest_framework/management/commands/generateschema.py", line 43, in handle2.601 schema = generator.get_schema(request=None, public=True)2.602 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2.606 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/rest_framework/schemas/openapi.py", line 80, in get_schema2.608 operation = view.schema.get_operation(path, method)2.608 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2.608 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/rest_framework/schemas/openapi.py", line 146, in get_operation2.608 operation['operationId'] = self.get_operation_id(path, method)2.608 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2.608 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/rest_framework/schemas/openapi.py", line 268, in get_operation_id2.608 name = self.get_operation_id_base(path, method, action)2.608 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2.608 File "/root/.cache/pypoetry/virtualenvs/allfactors-django-MATOk_fk-py3.12/lib/python3.12/site-packages/rest_framework/schemas/openapi.py", line 250, in get_operation_id_base2.608 from inflection import pluralize2.608 ModuleNotFoundError: No module named 'inflection'Metadata
Metadata
Assignees
Labels
No labels