1.Try adding ansible_python_interpreter=/usr/bin/python3 in your inventory file.
ansible_python_interpreter=/path/to/venv
Lastly, if that doesn't resolve the problem, create a venv, install the desired packages and execute the playbook from INSIDE the venv. Some packages do not work on all ubuntu versions hence a venv is required.
Had a similar problem with the proxmoxer package.
Once installed inside the venv and ran ansible from there it resolved the issue.
PLaybook runs just fine: