Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: pkg_resources is deprecated as an API. #60

Open
2 tasks done
bradydean opened this issue Apr 6, 2024 · 1 comment
Open
2 tasks done

DeprecationWarning: pkg_resources is deprecated as an API. #60

bradydean opened this issue Apr 6, 2024 · 1 comment

Comments

@bradydean
Copy link

bradydean commented Apr 6, 2024

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
@wbarnha
Copy link
Member

wbarnha commented Apr 6, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants