-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Happy Whatever Day it is when You read this. I wanted to share this with You in hopes that You could update the tooling to support newer python implementations because pkg_resources is deprecated as an API and being replaced importlib appearing to be largely coming from PEP 420
In [2]: from wolframclient.evaluation import WolframLanguageSession
/usr/lib64/python3.13/importlib/__init__.py:88: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
return _bootstrap._gcd_import(name[level:], package, level)
From the page linked:
Attention
Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.
An interesting conversation on solutions exist here in this zope github bug and it might be interesting to specifically read the comment by https://github.com/davisagli stating:
I made an experimental tool which tries to help with this transition by making pkg_resources-style namespaces compatible with the other styles: https://pypi.org/project/horse-with-no-namespace/