Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

setuptoolspkg_resources deprecation warning and December removal #2240

Closed
@ABruihler

Description

@ABruihler

As ofsetuptools==80.9.0, when importingnapalm, the following warning is shown aboutpkg_resources being deprecated and slated for removal in December:

Python 3.12.10 (main, Apr  9 2025, 03:49:38) [Clang 20.1.0 ] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import napalm/Users/me/dir/.venv/lib/python3.12/site-packages/napalm/__init__.py:1: 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

The referencedsetuptools link includes more details (emphasis mine):

Use ofpkg_resources is deprecated in favor ofimportlib.resources,importlib.metadata and their backports (importlib_resources,importlib_metadata). Some useful APIs are also provided bypackaging (e.g. requirements and version parsing). Users should refrain from new usage ofpkg_resources andshould work to port to importlib-based solutions.

setuptoolsissue #3085 anddraft PR #5007 have some additional discussion.

In our project we have pinnedsetuptools<80.9.0 to avoid the warning for now.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp