Skip to content

Deprecation warning: pkg_resources will be removed from setuptools in 2025 #605

@lhe127

Description

@lhe127

I am using the docxcompose library, and I have encountered the following deprecation warning related to pkg_resources:

UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources

This warning informs us that pkg_resources will be removed from setuptools after November 2025. As this library depends on pkg_resources, this could cause compatibility issues with future versions of Python and setuptools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions