aws / aws/aws-elastic-beanstalk-cli-setup

Installation fails in PowerShell

Open
#99 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
537
Forks
226
PR merge metrics
No merged PRs in 30d

Description

**1. Please specify the following:**
- OS: Windows 10 20H2
- Shell (Bash, PowerShell, Zsh, etc.): PowerShell 7

- [x] **I have reviewed the troubleshooting tips described [here](https://github.com/aws/aws-elastic-beanstalk-cli-setup#23-troubleshooting) and they do not solve my problem**

**2. Description**
I `git clone` and run the installer and get this error, but I have set the `Get-ExecutionPolicy` as described in the readme.

```
PS C:\Users\david> .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

==============================================
I. Installing Python
==============================================
. : File C:\Users\david\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ . 'C:\Users\david\OneDrive\Documents\WindowsPowerShell\Microsoft.Powe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
C:\Users\david\aws-elastic-beanstalk-cli-setup\scripts\install-python.ps1 : File C:\Users\david\aws-elastic-beanstalk-cli-setup\scripts\install-python.ps1
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ C:\Users\david\aws-elastic-beanstalk-cli-setup\scripts\install-python ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Exiting due to failure
PS C:\Users\david> Get-ExecutionPolicy -List

Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine RemoteSigned

PS C:\Users\david>
```

It would great if there was an `.exe` to install this.

Contributor guide

Open the contributing guide

Research direction

Start with scripts/bundled_installer and scripts/install-python.ps1, then review the README troubleshooting section for the documented PowerShell execution-policy assumptions. Reproduce the Windows 10 and PowerShell 7 installation failure and determine whether the installer can run successfully under the reported policy settings; done means the installation completes without the shown script-loading errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, python
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.