Hann0321 commented on PR #3681: URL: https://github.com/apache/ambari/pull/3681#issuecomment-1521373997
> ## Hi I am getting below error while adding service trough Ambari UI Install wizard > File "/usr/lib/[ambari-agent](https://issues.apache.org/jira/browse/AMBARI-agent)/lib/resource_management/core/providers/packaging.py", line 30, in action_install self._pkg_manager.install_package(package_name, self.__create_context()) File "/usr/lib/[ambari-agent](https://issues.apache.org/jira/browse/AMBARI-agent)/lib/ambari_commons/repo_manager/yum_manager.py", line 211, in install_package elif context.is_upgrade or context.use_repos or not self._check_existence(name): File "/usr/lib/[ambari-agent](https://issues.apache.org/jira/browse/AMBARI-agent)/lib/ambari_commons/repo_manager/yum_manager.py", line 278, in _check_existence return self.yum_check_package_available(name) File "/usr/lib/[ambari-agent](https://issues.apache.org/jira/browse/AMBARI-agent)/lib/ambari_commons/repo_manager/yum_manager.py", line 287, in yum_check_package_available import yum # Python Yum API is much faster then other check methods. (even then "import rpm") ModuleNotFoundError: No module named 'yum' > > While analyzing this I found that yum module is not available in python3, have you also observed same error? @himanshumaurya09876 **Hi Python3 has deprecated the use of the yum module. I think we can abandon the call to yum_check_package_available and use the call to rpm_check_package_available.**  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
