andrewrothstein / ansible-anaconda

Ansible role for installing Anaconda
MIT License
47 stars 42 forks source link

in CentOS 7 the conda binary is defined in the wrong path #35

Closed besmirzanaj closed 4 years ago

besmirzanaj commented 4 years ago

The binary for conda has a different name and path prpbably from some changes in the release archives.

The error during the update of conda is here

TASK [andrewrothstein.anaconda : update conda pkgs...] *****************************************************************************************************************************
Tuesday 03 December 2019  12:33:13 -0500 (0:00:00.235)       0:00:27.991 ****** 
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/local/anaconda/bin/conda update -y --all", "msg": "[Errno 2] No such file or directory", "rc": 2}

The new location of the installed binary is here

/usr/local/anaconda/conda.exe

instead of here

/usr/local/anaconda/bin/conda
besmirzanaj commented 4 years ago

this was running in CentOS 7. the binary had an .exe extension, yup Besmir ZANAJ

On Tue, Dec 3, 2019 at 9:39 PM Andrew Rothstein notifications@github.com wrote:

need some more context. r u targeting windows or a linux?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewrothstein/ansible-anaconda/issues/35?email_source=notifications&email_token=AAYBWFQSUAABYPPTGPMLB3LQW4J6HA5CNFSM4JU35ID2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF3QVIA#issuecomment-561449632, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYBWFUHEFPDYOHJWK4OXHDQW4J6HANCNFSM4JU35IDQ .

andrewrothstein commented 4 years ago

what version of the role are you using? what version of anaconda are you using?

besmirzanaj commented 4 years ago

Jut using whatever is in the role. No customizations or custom vars

On Thu., Dec. 5, 2019, 13:34 Andrew Rothstein, notifications@github.com wrote:

what version of the role are you using? what version of anaconda are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewrothstein/ansible-anaconda/issues/35?email_source=notifications&email_token=AAYBWFUD7NOPAHBYRH2XAUDQXFCTNA5CNFSM4JU35ID2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGBVZRA#issuecomment-562257092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYBWFVOFHDQ4EQK32MJXPLQXFCTNANCNFSM4JU35IDQ .

andrewrothstein commented 4 years ago

As part of my CI, I build container images for every platform on every commit to the repo. These images were created about a month ago.

± |master ✓| → docker run --rm -it quay.io/andrewrothstein/ansible-anaconda:centos_7 bash -l -c 'conda --version'
conda 4.7.12
± |master ✓| → docker run --rm -it quay.io/andrewrothstein/ansible-anaconda:centos_7 bash -c '/usr/local/anaconda/bin/conda --version'
conda 4.7.12

I just kicked off a rebuild of the images to see if there's any funny business in the upstream distribution. I highly doubt it given that these images are checksum-ed.

https://travis-ci.org/andrewrothstein/ansible-anaconda/builds/606919420