-
Notifications
You must be signed in to change notification settings - Fork 6
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
awscli --no-sign-request
option not working
#213
Comments
I thought it might be a bug with the pinned The flag works within the Nextstrain shell if I re-install
There are dependencies updates shown, so it's due to some dependency incompatibility issue? |
Ah, because the Nextstrain CLI is pip installed after the awscli, it updates the botocore dependencies. I don't really want to touch the Nextstrain CLI botocore dependency hell, so I think the easiest is to upgrade the |
(Or we could just change avian-flu to use |
Flag works as expected after matching botocore v1.34.106 with awscli v1.32.106:
I don't think it's sustainable to have to maintain the compatibility of awscli with the dependencies of the Nextstrain CLI. |
We could also install the standalone Nextstrain CLI instead of the PyPI package. |
Or could also install AWS CLI v2, which is not installed via Pip. Or yes, could use Pipx, but that'll require some additional configuration. |
Ah, yeah. Conda-base includes AWS CLI v2 so we could match it here. |
We were running into dependency issues with awscli v1, which was installed via Pip.¹ Update to AWS CLI v2 which is _not_ installed via Pip. ¹ <#213>
Hrm, seeing an error for my attempt to switch to AWS CLI v2 in ffdac83.
I must be doing something wrong with Lines 224 to 227 in ffdac83
Will investigate tomorrow. |
We were running into dependency issues with awscli v1, which was installed via Pip.¹ Update to AWS CLI v2 which is _not_ installed via Pip. ¹ <#213>
We were running into dependency issues with awscli v1, which was installed via Pip.¹ Update to AWS CLI v2 which is _not_ installed via Pip. Instead of working around the absolute path symlinks created by running `./aws/install`, we are "just installing the files ourselves"² and creating the symlink for `/final/bin/aws`. ¹ <#213> ² <#214 (comment)>
The least change option for now might be installing awscli v1 from PyPI with pip (no change) but doing so into an isolated venv. This requires ~no additional configuration like |
Otherwise, the awscli → botocore dependency is broken by the subsequent installation of the nextstrain-cli → botocore dependency, which results in --no-sign-request not working as it should. This approach seemed like the option of least change. Alternatives to and/or additional improvements to this include a) installing Nextstrain CLI in its own venv instead/as well, b) upgrading to AWS CLI v2 (which is always isolated) or c) updating the nextstrain-cli → botocore dependency to not conflict. Resolves: <#213> Related-to: <#214>
Context
I was trying to implement the conditional use of the
--no-sign-request
flag for the avian flu but was still running into "Unable to locate credentials" error.I think this is dependency issue within docker-base as I am able to use the flag successfully in conda-base.
The text was updated successfully, but these errors were encountered: