Skip to content

DeprecationWarning: pkg_resources is deprecated as an API. #60

Closed

Description

@bradydean

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Mode.

mode-streaming uses the pkg_resources module, but it is depreciated and produces these warnings when imported.

../../../home/flip/.cache/pypoetry/virtualenvs/xxxx-TrDUeRso-py3.12/lib/python3.12/site-packages/mode/utils/imports.py:344
  /home/flip/.cache/pypoetry/virtualenvs/xxxx-TrDUeRso-py3.12/lib/python3.12/site-packages/mode/utils/imports.py:344: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import iter_entry_points

../../../home/flip/.cache/pypoetry/virtualenvs/xxxx-TrDUeRso-py3.12/lib/python3.12/site-packages/pkg_resources/__init__.py:2846
  /home/flip/.cache/pypoetry/virtualenvs/xxxx-TrDUeRso-py3.12/lib/python3.12/site-packages/pkg_resources/__init__.py:2846: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

Versions

  • Python version 3.12
  • Mode version 0.3.5
  • Operating system Fedora

Activity

  1. wbarnha commented on Apr 6, 2024

    @wbarnha
    Member

    I've been meaning to make progress on this for a bit, but removing the legacy calls will break some things, hence the delay.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions