faust-streaming/mode

DeprecationWarning: pkg_resources is deprecated as an API.

Opened this issue · 1 comments

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

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