Skip to content

Use of deprecated pkg_resources #200

@kafitzgerald

Description

@kafitzgerald

I noticed this warning regarding pkg_resources in popping up in a notebook where we use pythia-datasets. It's also showing up in CI runs.

Relevant snippet from the logs:

/home/runner/work/pythia-datasets/pythia-datasets/pythia_datasets/__init__.py:4: 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 DistributionNotFound, get_distribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureInfrastructure related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions