aws-elastic-beanstalk-cli-setup icon indicating copy to clipboard operation
aws-elastic-beanstalk-cli-setup copied to clipboard

On windows eb cannot be placed in a directory with spaces

Open air2 opened this issue 5 years ago • 2 comments

1. Please specify the following:

  • OS: Windows

  • Shell (Bash, PowerShell, Zsh, etc.): Powershell

  • [X ] I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description After installation a eb.ps1 file ends up in C:\Users<UserName> because on windows usernames can contain spaces and some long gone sysadmin thought that was actually a good idea I ended up with a space in my username at my workplace. Anyway by modifying eb.ps1 it now works:

c:\Users\A9DA8~1.BRU\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\A9DA8~1.BRU\.ebcli-virtual-env\Scripts\eb $args
deactivate

As you can see I used the old dos shortname instead of the generated long name which is causing problems:

c:\Users\My Name\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\My Name\.ebcli-virtual-env\Scripts\eb $args
deactivate

air2 avatar Oct 22 '20 14:10 air2

For anyone learning about DOS short names, it'll be the first 6 letters followed by ~1 assuming there's no name collisions.

For Example: If your user is named "Canada Computers", you can modify the eb.ps1 file with:

C:\Users\CANADA~1\.ebcli-virtual-env\Scripts\activate.ps1 C:\Users\CANADA~1\.ebcli-virtual-env\Scripts\eb $args deactivate

GrandNewbien avatar May 20 '21 20:05 GrandNewbien

Just got into same issue you just have to do this to solve this : you can modify the eb.ps1 file with:

just add " quote to the My Name like "My Name"

c:\Users\"My Name"\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\"My Name"\.ebcli-virtual-env\Scripts\eb $args
deactivate

bitcreations avatar Oct 28 '21 14:10 bitcreations