chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.
Apache License 2.0
1.52k stars 236 forks source link

`DeprecationWarning: pkg_resources is deprecated as an API` #413

Open Yelinz opened 5 months ago

Yelinz commented 5 months ago

With python 3.10 tika-python generates DeprecationWarning

..../lib/python3.10/site-packages/tika/__init__.py:20
..../lib/python3.10/site-packages/tika/__init__.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    __import__('pkg_resources').declare_namespace(__name__)

..../lib/python3.10/site-packages/tika/__init__.py:20
..../lib/python3.10/site-packages/tika/__init__.py:20: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('tika')`.
  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
    __import__('pkg_resources').declare_namespace(__name__)