satellite-installer or subscription-manager commands fails with error 'cannot import name 'which'
Issue
satellite-installercommand produces the following error.
2023-05-20 08:39:49 [ERROR ] [configure] cannot import name 'which'
2023-05-20 08:39:50 [ERROR ] [configure] cannot import name 'which'
2023-05-20 08:39:55 [ERROR ] [configure] cannot import name 'which'
subscription-managercommands fails with following error.
Unable to find Subscription Manager module.
Error: cannot import name 'which'
Environment
- Red Hat Satellite 6
- Red Hat Enterprise Linux Server
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.