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

AWS CLI one line installer failing when the path to it contains a space (e.g. WSL) #9058

Open
1 task
aneutron opened this issue Nov 6, 2024 · 3 comments
Open
1 task
Assignees
Labels
bug This issue is a bug. installation p3 This is a minor priority issue

Comments

@aneutron
Copy link

aneutron commented Nov 6, 2024

Describe the bug

Hello,

I was attempting to install AWS CLI on WSL (Windows Subsystem for Linux, Debian). The one-liner worked nice until it broke because it couldn't find the installer, and this is the error I got: ./aws/install: 78: /mnt/c/Users/MyFirstName: not found

This was weird, but it made sense since I was installing AWS CLI from `/mnt/c/Users/MyFirstName\ MyLastName' (which is how WSL references the host's file (Windows files).

I'm not sure if that intended behavior, but it looked to me like it was an error case that should be handled, so I thought it might be better to report it anyway.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The install succeeds regardless of whether the path contains spaces.

Current Behavior

The install stops midway.

Reproduction Steps

Put the installer on a path that contains spaces, attempt to install AWS CLI.

Possible Solution

Haven't looked at the code unfortunately, but perhaps better to check the path properly at the beginning.

Additional Information/Context

No response

CLI version used

aws-cli/2.19.1 Python/3.12.6

Environment details (OS name and version, etc.)

Linux/5.15.153.1-microsoft-standard-WSL2 exe/x86_64.debian.12

@aneutron aneutron added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 6, 2024
@adev-code adev-code self-assigned this Nov 7, 2024
@adev-code adev-code added investigating This issue is being investigated and/or work is in progress to resolve the issue. installation p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 7, 2024
@adev-code
Copy link

Hi @aneutron, thanks for reaching out. I was not able to reproduce the same issue. I was able to install AWS CLI on a file path containing a space. Were you able to reproduce this on a non-WSL environment? If so, could you go into detail about your steps to do that? Thanks!

@adev-code adev-code added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Nov 11, 2024
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 22, 2024
@aneutron
Copy link
Author

Hey ! Sorry I missed your answer. I'll try and get you detailed reproduction steps and possibly a fix in the next few days.

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. installation p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

2 participants