# TypeError: '>' not supported between instances of 'Version' and 'str'

- **ID:** `python/packaging-version-comparison-error`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Comparing a packaging.version.Version object directly with a string without conversion.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   from packaging.version import Version; v1 = Version('1.0'); v2 = Version('2.0'); print(v1 < v2)
   ```
2. **** (90% success)
   ```
   from packaging.version import parse; print(parse('1.0') > parse('2.0'))
   ```

## Dead Ends

- **** — String comparison of versions (e.g., '1.10' > '1.9') is lexicographic and incorrect. (80% fail)
- **** — Equality may work but other comparisons still fail. (50% fail)
