Skip to content

pkg_resources import fails with Setuptools 72.0.0+ #12

@arthurbdiniz

Description

@arthurbdiniz

Description

The package currently uses pkg_resources.resource_filename to load the ActivityStreams 2.0 context file. However, pkg_resources has been removed from Setuptools 72.0.0+, causing import errors in environments with newer Setuptools versions.


Error

from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'

Environment

  • Setuptools version: 72.0.0+
  • Python version: [any]

Impact

This prevents the package from being imported in environments with recent Setuptools versions, making it unusable without downgrading Setuptools.


Root Cause

The pkg_resources module was deprecated and has been removed from Setuptools. See:

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