Skip to content

DeprecationWarning: pkg_resources is deprecated as an API. #60

@bradydean

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

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