# DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

- **ID:** `python/setuptools-pkg-resources-deprecation-warning`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The pkg_resources module from setuptools is deprecated and will be removed in future versions. Code or dependencies still import it, triggering the warning.

## Version Compatibility

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

## Workarounds

1. **** (85% success)
   ```
   Replace pkg_resources usage with importlib.metadata and importlib.resources from the standard library.
   ```
2. **** (80% success)
   ```
   If the warning comes from a third-party package, update it to the latest version that no longer uses pkg_resources.
   ```

## Dead Ends

- **** — Hides the warning but does not fix the underlying deprecated usage; future removal will break the code. (90% fail)
- **** — Temporary workaround but loses security fixes and new features; not sustainable. (70% fail)
