ansible-anaconda icon indicating copy to clipboard operation
ansible-anaconda copied to clipboard

ModuleNotFoundError: No module named 'distutils.spawn'

Open mivalsten opened this issue 4 years ago • 0 comments

Hello, Running this role against fresh Ubuntu Server 18.04 LTS produces below error on task remove conda-curl since it conflicts with the system curl

{
    "changed": false,
    "module_stderr": "Shared connection to xxx.xxx.xxx.xxx closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/xxx/.ansible/tmp/ansible-tmp-1611129119.9166963-71440610783391/AnsiballZ_conda.py\", line 102, in <module>\r\n    _ansiballz_main()\r\n  File \"/home/gko/.ansible/tmp/ansible-tmp-1611129119.9166963-71440610783391/AnsiballZ_conda.py\", line 94, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/home/xxx/.ansible/tmp/ansible-tmp-1611129119.9166963-71440610783391/AnsiballZ_conda.py\", line 40, in invoke_module\r\n    runpy.run_module(mod_name='ansible.modules.conda', init_globals=None, run_name='__main__', alter_sys=True)\r\n  File \"/usr/lib/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/lib/python3.6/runpy.py\", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File \"/usr/lib/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_conda_payload_ot31k7m9/ansible_conda_payload.zip/ansible/modules/conda.py\", line 73, in <module>\r\nModuleNotFoundError: No module named 'distutils.spawn'\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Ansible Version: 2.9.6

mivalsten avatar Jan 20 '21 08:01 mivalsten