Please install a package which provides this module, or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
I noticed this only happens if I have sourced the ca_ps_env.ksh script before running yum. How can I solve this issue?
Environment
Policy Server R12.8 on RHEL7
Resolution
When you need to run OS functions instead Policy Server tools and commands, you do not need to source Policy Server environment variables script. This makes the OS functions to use libraries specified in the Policy Server environment variables script.
This is mentioned in the documentation at the following location: https://docops.ca.com/ca-single-sign-on/12-8/en/installing/install-a-policy-server/install-policy-server-on-unix/prepare-for-the-policy-server-installation/#PrepareforthePolicyServerInstallation-DoNotSourcetheEnvironmentSetupScript
So in order to run yum properly, do not source the ca_ps_env.ksh script.