Skip to content

1.3.2: pytest warning about use deprecated pkg_resources #393

Closed

Description

@kloczek
===================================================================================== warnings summary ======================================================================================
test/ext/test_linguaplugin.py::MakoExtractTest::test_extract
  /usr/lib/python3.9/site-packages/lingua/extractors/__init__.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import DistributionNotFound

test/ext/test_linguaplugin.py::MakoExtractTest::test_extract
  /usr/lib/python3.9/site-packages/pkg_resources/__init__.py:2846: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
  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)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Activity

  1. sqla-tester commented on Aug 3, 2026

    @sqla-tester
    Collaborator

    Mike Bayer has proposed a fix for this issue in the main branch:

    Require Lingua 4.16 or greater https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/6860

  2. added a commit that references this issue on Aug 4, 2026
    9d7f1d5
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