Skip to content

Missing app/schemas/user.py when using agent project type with sqladmin plugin #100

@healthkowshik

Description

@healthkowshik

In what type of project did the bug occur?
agent

Describe the bug
When generating an agent project with the sqladmin plugin enabled, app/schemas/user.py is excluded by the template, but app/integrations/sqladmin/views/user.py requires UserCreate and UserUpdate from it, causing a ModuleNotFoundError at runtime.

To Reproduce

  1. Generate a new project: copier copy https://github.com/the-momentum/python-ai-kit $TARGET_DIR --trust
  2. Select project type: agent
  3. Enable plugins: sqladmin (and optionally others)
  4. Try to run the application: uv run streamlit run app/gui.py

Expected result
The application should start without import errors since the sqladmin views require the user schemas.

Actual result

ModuleNotFoundError: No module named 'app.schemas.user'

Environment (please complete the following information):

  • OS: Darwin 24.6.0
  • Agent/LLM: N/A (template generation issue)
  • Execution method: local uv
  • Python version: 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions