faust-streaming / mode

Python AsyncIO Services
https://faust-streaming.github.io/mode/
Other
42 stars 16 forks source link

DeprecationWarning: pkg_resources is deprecated as an API. #60

Open bradydean opened 6 months ago

bradydean commented 6 months ago

Checklist

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

wbarnha commented 6 months ago

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