Skip to content

Bad api call: pkg_resources is deprecated #13902

@alanmcanonical

Description

@alanmcanonical

Description of problem:

When run automatus.py testing on Ubuntu questing, I got warning:

content/tests/../ssg/requirement_specs.py:5: 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

SCAP Security Guide Version:

Operating System Version:

Ubuntu 25.10

Steps to Reproduce:

  1. Build the product
  2. Run automatus.py rule test

Actual Results:

/home/am/git-pulls/content/tests/../ssg/requirement_specs.py:5: 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
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.

Expected Results:

No warning

Additional Information/Debugging Steps:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions