I get the error: Failed to import the required Python library (netaddr). I tried install also python3-netaddr, with become and with extra_args: "--user", but still same error.
"msg": "Failed to import the required Python library (netaddr) on e9498466e11b's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"
SUMMARY
I have spent 2 days already and I can
t fix that error. And I don
t know what to do, please help :) When I run this task:I get the error: Failed to import the required Python library (netaddr). I tried install also python3-netaddr, with become and with
extra_args: "--user"
, but still same error.ISSUE TYPE
COMPONENT NAME
ansible.utils.ipaddr
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
target os - ubuntu 22.04, clean fresh virtual machine
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
"msg": "Failed to import the required Python library (netaddr) on e9498466e11b's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"![image](https://github.com/ansible-collections/ansible.utils/assets/35523575/58d1eea0-0b66-406b-af2d-125468fd0bc0)