Skip to content

Deprecation warning for pkg_resources #280

@tangledhelix

Description

@tangledhelix

Given a sufficiently new Python install, Ebookmaker runs emit this warning (although it will still run):

C:\Users\jdoe\.virtualenvs\Tools-Am72YoWY\Lib\site-packages\ebookmaker\ParserFactory.py:22:
        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.
  from pkg_resources import resource_listdir, resource_stream # pylint: disable=E0611

This happens because pkg_resources was deprecated at some point, as noted near the top of this page.

Also, as of Python 3.12, pkg_resources has been removed from the Python distribution, requiring users to install setuptools to make Ebookmaker work. See #279.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions