Gandhe harshith created AMBARI-26567:
----------------------------------------
Summary: Fix pkg_resources deprecation warning in ambari_jinja2
Key: AMBARI-26567
URL: https://issues.apache.org/jira/browse/AMBARI-26567
Project: Ambari
Issue Type: Bug
Affects Versions: 3.0.0
Environment: * Ubuntu22
* python3.11
* pip3.11 show setuptools | grep Version
Version: 80.9.0
Reporter: Gandhe harshith
Assignee: Gandhe harshith
ambari restart or any operation involving internal jinja library throws
following warning about pkg_resources
{code:java}
ambari-server restart
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Using python /usr/bin/python3.11
Restarting ambari-server
/usr/lib/ambari-server/lib/ambari_jinja2/__init__.py:33: 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.
__version__ = __import__("pkg_resources").get_distribution("Jinja2").version
{code}
this is particularly with *+ubuntu22+* where setuptools version is
{code:java}
pip3.11 show setuptools | grep Version
Version: 80.9.0 {code}
better to use newer lib/alternate for long term solution
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]