Skip to content

getting warning (or error) about pkg_resources package being deprecated as an API by setuptools #84

@idcrook

Description

@idcrook

trimmed some system local details. in python 3.13 on trixie raspberry pi.

.venv/lib/python3.13/site-packages/niet/__init__.py:8: 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

version : (3.2.0) - .venv/lib/python3.13/site-packages/niet-3.2.0.dist-info/

before installing latest setuptools, was receiving Error

$ niet
Traceback (most recent call last):
  File "/home/pi/projects/kubernetes-secret-lair/.venv/bin/niet", line 5, in <module>
    from niet.__main__ import main
  File "/home/pi/projects/kubernetes-secret-lair/.venv/lib/python3.13/site-packages/niet/__init__.py", line 8, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

so installed latest setuptools (version 80.9.0) in venv

pip install --upgrade setuptools
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting setuptools
  Downloading https://www.piwheels.org/simple/setuptools/setuptools-80.9.0-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 4.2 MB/s eta 0:00:00
Installing collected packages: setuptools
Successfully installed setuptools-80.9.0

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