Skip to content

Stop using deprecated pkg_resources #219

Open

Description

@tfardet

We should switch to the new imports described here, which would also avoid the setuptools dependency currently missing in requirements.txt

Activity

  1. added
    enhancement
    on Sep 23, 2024
  2. hadrilec commented on Jan 1, 2025

    @hadrilec
    Contributor

    issue tackled by the following commits: 1a0beb1 526e918

  3. hadrilec commented on Feb 18, 2025

    @hadrilec
    Contributor

    is this issue still relevant?

  4. tfardet commented on Feb 18, 2025

    @tfardet
    CollaboratorAuthor

    Yes, there are still a bunch of imports for pkg_resources throughout the code that need removing

  5. tfardet commented on Mar 30, 2026

    @tfardet
    CollaboratorAuthor

    As mentioned by @tgrandje in #301 starting with version 82, setuptools crashes on pkg_resources import.
    He made #302 to limit the version in the meantime but we need to cleanup the code so this is no longer an issue

  6. tgrandje commented on Mar 30, 2026

    @tgrandje
    Collaborator

    I'm not even sure why I ran into the setuptools problem during my tests. I was under the assumption that the whole try [... importlib.resources ... ] / except [... import pkg_resources ...] should have prevented me from ever reaching pkg_resources. I'll try to debug this before pruning obsolete code...

  7. tfardet commented on Mar 31, 2026

    @tfardet
    CollaboratorAuthor

    @tgrandje if there if an issue with the importlib code, there no guard on the now obsolete import

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions