Skip to content

[bug] Dependency warning on deprecated pkg_resources #1289

@prnvkv

Description

@prnvkv

Describe the bug
When we import guardrails and start it, immediately after starting, we get this harmless message:

.venv/lib/python3.12/site-packages/guardrails/hub/install.py:6: 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.
  import pkg_resources

To Reproduce
Steps to reproduce the behavior:
guard = Guard().use()

Expected behavior
No warning

Library version:
Version (e.g. 0.6.0)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions