You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
Might be the library is just not installed in a location Ansible can find it. I use pipx to install python modules, and had to do this (not sure the proper way, but this worked for me):
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"
The text was updated successfully, but these errors were encountered: