Skip to content
Advertisement

Issue with lookup(‘dig’) not finding ‘dnspython’

On a Red Hat 8.3 machine I try to use this ansible code:

JavaScript

But I get an error:

JavaScript

I think maybe the lookup('dig') doesn’t search in the right place…

However I think I do in fact have dnspython installed:

JavaScript

More info:

JavaScript

Advertisement

Answer

Converting comment to answer.

When you use the pip3 command it references the Python 3.6 version you have installed: /home/user/.local/lib/python3.6/site-packages as you can see it says python3.6 and not 3.8. To install the module in 3.8, try to use pip3.8 instead.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement