Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'guestfs' when interpreter_python=/usr/bin/python3 and hypervisor is RHEL 7 #4

Open
ppetrou opened this issue Apr 20, 2020 · 0 comments
Assignees

Comments

@ppetrou
Copy link
Owner

ppetrou commented Apr 20, 2020

Having interpreter_python=/usr/bin/python3 causes failure when hypervisor is RHEL 7

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'guestfs'
fatal: [192.168.1.171]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.1.171 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1587416356.8042424-125516054166866/AnsiballZ_gfs_part.py", line 102, in \r\n _ansiballz_main()\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1587416356.8042424-125516054166866/AnsiballZ_gfs_part.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1587416356.8042424-125516054166866/AnsiballZ_gfs_part.py", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.gfs_part', init_globals=None, run_name='main', alter_sys=True)\r\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_gfs_part_payload_eqe28eni/ansible_gfs_part_payload.zip/ansible/modules/gfs_part.py", line 107, in \r\n File "/tmp/ansible_gfs_part_payload_eqe28eni/ansible_gfs_part_payload.zip/ansible/module_utils/guestfish_lib.py", line 3, in \r\nModuleNotFoundError: No module named 'guestfs'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

@ppetrou ppetrou self-assigned this Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant