Space in path name causes installer to fail
1. Please specify the following:
-
OS: Windows
-
Shell CMD
-
[ ] I have reviewed the troubleshooting tips described here and they do not solve my problem
2. Description The bundled installer is failing on my system due to a space in the path name.
c:\My Git Files>.\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer
c:\My Git Files>Powershell.exe -executionpolicy remotesigned -File "c:\My Git Files\aws-elastic-beanstalk-cli-setup\scripts\\bundled_installer.ps1"
==============================================
I. Installing Python
==============================================
C:\My : The term 'C:\My' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ C:\My Git Files\aws-elastic-beanstalk-cli ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\My:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Exiting due to failure
Hi @dmacika , sorry for the late response and thanks for bringing this up.
In the meantime, the alternative is to install Python manually from https://www.python.org/downloads/windows/ and to run:
python .\scripts\ebcli_installer.py
- Installing Python. Do not close this window.
Installing Python. Do not close this window. Cannot convert value to type System.String. At C:\Windows\System32\aws-elastic-beanstalk-cli-setup\scripts\install-python.ps1:57 char:9
-
Write-Host "Installation failed with exit code $install.ExitC ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidArgument: (:) [], RuntimeException
- FullyQualifiedErrorId : InvalidCastFromAnyTypeToString
Exiting due to failure
As another workaround, you can copy the "aws-elastic-beanstalk-cli-setup" install path into a new directory that does not include a space in it and the bundled install will function properly.