# sqlalchemy.exc.InvalidRequestError: Mapper 'mapped class User->users' has no property 'email_addr'

- **ID:** `python/sqlalchemy-missing-attribute`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在查询或关系定义中引用了不存在的映射属性。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.4.x | active | — | — |
| 2.0.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   检查模型定义，确保属性名正确，例如：email = Column(String)
   ```
2. **** (80% success)
   ```
   如果列名不同，使用 column_property 映射。
   ```

## Dead Ends

- **** — 尝试在模型类中动态添加属性，但不会自动映射到数据库列。 (70% fail)
- **** — 忽略错误，但查询会持续失败。 (90% fail)
