Skip to content

pkg_resources is deprecated as an API #106

@dratasich

Description

@dratasich

Hi,

using this library requires setuptools<81 to be installed, otherwise I get:

    from tb_device_mqtt import TBPublishInfo
.venv/lib/python3.12/site-packages/tb_device_mqtt.py:23: in <module>
    from utils import install_package
.venv/lib/python3.12/site-packages/utils.py:17: in <module>
    from pkg_resources import get_distribution, DistributionNotFound
E   ModuleNotFoundError: No module named 'pkg_resources'

Note that I'm a complete noob regarding package publishing, but I thought setuptools is for building python packages - not necessarily required for running/using. However, the usage seems to be deprecated too:

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.

Do you have plans to update the dependency management?

Thanks in advance!
Best regards,
Denise

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