-
Notifications
You must be signed in to change notification settings - Fork 41
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
Removing curl is not enough to remove libcurl.a #20
Comments
this part about conda-curl is so janky. I wonder why the Continuum folks haven't fixed it. I just installed the role on my desktop. Ran it multiple times without issue. I see the removal of the conda package and the corresponding removal of libconda.a. Subsequent runs register this task as "ok". Can you explain to me how you see /usr/local/anaconda/bin/libcurl.a present after removing the conda-curl Anaconda package? |
+1 Same error as above. I do not have /usr/local/anaconda/bin/libcurl.a after running. New at ansible, so not sure what other information I can provide to be helpful.
|
On my side, libcurl.a is from @jelinekb if you manually remove libcurl package ( |
yea I ran into the same issue. Have to remove curl and libcurl then the playbook is less angry |
What version of Anaconda are you using? I use docker to test my roles on fresh installations and for the latest with Python 3 removing the curl module does the deed. It looks like the curl package depends on the libcurl package. Are you subsequently adding a package that has a libcurl dependency? Really wish there was a conda Ansible module to idempotently ensure both the curl and libcurl packages are absent. |
Hello, It also fails at this tasks but because module The full traceback is:
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py", line 102, in <module>
_ansiballz_main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.conda', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib/python3.6/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_conda_payload_6sq8n7a6/ansible_conda_payload.zip/ansible/modules/conda.py", line 73, in <module>
ModuleNotFoundError: No module named 'distutils.spawn'
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1589126021.76-11272-80941276865077/AnsiballZ_conda.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.conda', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_conda_payload_6sq8n7a6/ansible_conda_payload.zip/ansible/modules/conda.py\", line 73, in <module>\nModuleNotFoundError: No module named 'distutils.spawn'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
} |
Your role triggers an error at second run here because removing curl package does not remove libcurl.a file (first run install conda, uninstall curl conda package, let libcurl.a, then second run fails because libcurl.a is still here, so curl conda package uninstall is triggered again and fail because this package is not installed).
Removing libcurl may be a better choice (and also remove curl).
Error at second run:
The text was updated successfully, but these errors were encountered: