Skip to content

defusedxml deprecation warning #2044

@xwize

Description

@xwize

Merely importing the library and running under pytest

from doctr.io import DocumentFile
from doctr.models import ocr_predictor

gives

DeprecationWarning: defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead.
    from . import cElementTree

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

From https://pypi.org/project/defusedxml/

NOTE defusedxml.cElementTree is deprecated and will be removed in a future release. Import from defusedxml.ElementTree instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions