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 'distutils.spawn' #36

Open
mivalsten opened this issue Jan 20, 2021 · 0 comments
Open

ModuleNotFoundError: No module named 'distutils.spawn' #36

mivalsten opened this issue Jan 20, 2021 · 0 comments

Comments

@mivalsten
Copy link

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

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