# sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: users

- **ID:** `python/sqlalchemy-exc-no-such-table-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The database does not contain the expected table, often because migrations were not run or the table was never created.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Create tables via metadata** (95% success)
   ```
   Run migrations using Alembic or call Base.metadata.create_all(engine) to create all tables defined in models.
   ```
2. **Verify database path** (85% success)
   ```
   Check the database file path and ensure it points to the correct location where tables exist.
   ```

## Dead Ends

- **Creating table manually with SQL** —  (60% fail)
- **Restarting the app only** —  (80% fail)
