Skip to content

pkg_resources removed from setuptools #141

@mariabnd

Description

@mariabnd

The part of __init__.py that calls

from pkg_resources import get_distribution, DistributionNotFound

no longer works cf. pypa/setuptools#5174

and raises a ModuleNotFoundError: No module named 'pkg_resources' for Python 3.14 and setuptools 82.0.1

Temporary fix?

Tell users to install earlier version

pip install setuptools=81.0.0

or add it to requirements.txt

Longer term suggestion

Swap to importlib: https://importlib-metadata.readthedocs.io/en/latest/migration.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions