Skip to content

Fix missing pkg_resources issue for tests #215

Description

@9cpluss

Setuptools has removed pkg_resources which the dev-dependency MLflow version is using.

.venv/lib/python3.12/site-packages/mlflow/utils/requirements_utils.py:20: in <module> import pkg_resources # noqa: TID251 E ModuleNotFoundError: No module named 'pkg_resources'

After downgrading setuptools:
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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