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

Space in path name causes installer to fail

Open dmacika opened this issue 6 years ago • 3 comments

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

dmacika avatar Oct 25 '19 15:10 dmacika

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

rahulrajaram avatar Nov 08 '19 19:11 rahulrajaram


  1. 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

Ravindrakumara avatar Jun 03 '20 02:06 Ravindrakumara

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.

devinrobbins avatar Jan 04 '21 16:01 devinrobbins