Fix: Ansible playbook fails with "The error was: ImportError: cannot import name exceptions"

Hello,

Just a quick post to help any other people who may run into the error “ImportError: cannot import name exceptions” when attempting to execute an Ansible playbook through Morpheus. I was recently working with a customer with this problem and I narrowed it down to an incorrectly configured/installed python urllib3 library on one of their Morpheus application nodes.

Most of their python libraries were managed by the OS package manager however this library was managed by PIP. After re-installation the error went away and playbook execution was successful.

Thanks!

Chris

1 Like