Giter Site home page Giter Site logo

homebrew-tap's Introduction

homebrew-tap

Homebrew formulae that allows installation of AWS tools through the Homebrew package manager.

Installation

brew tap aws/tap
brew install <FORMULA>

Formulae

Repository Formula Description
container-tools formula Meta-package to install common container tools
copilot-cli formula Build, release and operate production ready containerized applications on Amazon ECS
ec2-instance-selector formula CLI tool and go library which recommends instance types based on resource criteria like vcpus and memory
ec2-metadata-mock formula A tool to simulate Amazon EC2 instance metadata
ec2-spot-interrupter formula CLI tool that triggers Amazon EC2 Spot Interruption Notifications and Rebalance Recommendations
eks-anywhere formula CLI tool for managing Amazon EKS Anywhere clusters
eks-node-viewer formula CLI tool for visualizing dynamic node usage within an EKS cluster.
eksctl formula CLI tool for creating and managing EKS clusters
eksdemo formula The easy button for learning, testing and demoing Amazon EKS
k8s-tools formula Meta-package to install common Kubernetes tools
lightsailctl formula Amazon Lightsail CLI Extensions
xray-daemon formula Relays traffic to AWS X-Ray API
aws-simple-ec2-cli formula CLI tool that simplifies the process of launching, connecting and terminating EC2 instances
qldbshell formula A CLI Shell for interacting with and processing queries against AWS QLDB
emr-on-eks-custom-image formula A CLI tool to interact with EMR on EKS custom images.
cbmc-viewer formula CBMC Viewer scans the output of CBMC and produces a summary that can be opened in any web browser to understand and debug CBMC findings.
dynamodb-shell formula A simple SQL CLI for DynamoDB

Migrated Formulae's

Repository Migrated Tap Formula Description
aws-sam-cli homebrew/core formula CLI tool to build, test, debug, and deploy Serverless applications using AWS Lambda
smithy-cli smithy-lang/tap formula A CLI for building, validating, querying, and iterating on Smithy models

Documentation

brew help, man brew or check Homebrew's documentation

homebrew-tap's People

Contributors

abhay-krishna avatar alpian avatar awood45 avatar aws-sam-cli-bot avatar aws-viewer-for-cbmc-release-ci avatar bwagner5 avatar c2tarun avatar cbmc-starter-kit-release-ci avatar coshus avatar cxbrowne1207 avatar dynamodb-shell-brew-pr-bot avatar ec2-bot avatar ecs-cicd-bot avatar efekarakus avatar eks-anywhere-brew-pr-bot avatar guyilin-amazon avatar haydenbaker avatar hnnasit avatar jfuss avatar kohidave avatar lucashuy avatar mndeveci avatar paxan avatar ronakfof avatar rothgar avatar sanathkr avatar snay2 avatar sriram-mv avatar tzneal avatar wchengru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-tap's Issues

Installing aws-sam-cli with homebrew on Mac: This error originates from a subprocess, and is likely not a problem with pip

brew config output

HOMEBREW_VERSION: 3.5.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: ff9c2500195cc357d4a06f99d462f8d8a5d37892
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a1ab82c9fb494f63d2e78a406285603801c24747
Core tap last commit: 4 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /Users/xxxx/homebrew
HOMEBREW_REPOSITORY: /Users/xxxx/homebrew
HOMEBREW_CELLAR: /Users/xxxx/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: false

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Your Homebrew's prefix is not /opt/homebrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/opt/homebrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.


Warning: /private/tmp is world-writable but does not have the sticky bit set.
To set it, run the following command:
  sudo chmod +t /private/tmp

What were you trying to do (and why)?

I am trying to install aws-sam-cli using homebrew. I don't have access to sudo so I can't install sudo in /opt/homebrew and I can't run sudo chmod +t /private/tmp to make it world-writable. i'm not sure those are the issues, but I'm getting errors with pip.

What happened (include all command output)?

I get the following errors:

 Already downloaded: /Users/xxxx/Library/Caches/Homebrew/downloads/83481a8e9be3330f9960015919f25317b568fa8de7b6356eb075525e3e195f23--aws-aws-sam-cli-v1.53.0-0-gd2ded65.tar.gz
==> Installing aws-sam-cli from aws/tap
==> python3.8 -m venv --system-site-packages /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec
==> /Users/xxxx`/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/pip install --upgrade pip
==> /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/pip install -v --ignore-installed /private/tmp/aws-sam-cli-20220810-13910-1ye8m1/aws-aws-sam-cli-d2ded65
Last 15 lines from /Users/xxxx/Library/Logs/Homebrew/aws-sam-cli/03.pip:
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/python3.8 /private/tmp/pip-standalone-pip-2la8pnl4/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-5ds_f846/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel
  cwd: [inherit]
  Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)'))) - skipping

What did you expect to happen?

I expect aws-sam-cli to be installed

Step-by-step reproduction instructions (by running brew commands)

`brew install aws-sam-cli`

sam CLI installation not working with homebrew 2.4.16

After the update to homebrew 2.4.16 aws sam cli is no longer being installed correctly using homebrew
Reproduction Steps
My installation steps of aws cli and sam cli are as follows

    - echo "Installing AWS CLI V1"
    - curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
    - unzip awscli-bundle.zip
    - sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
    - aws --version
    - echo "Installing SAM"
    - bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    - test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
    - test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
    - echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
    - brew --version
    - brew tap aws/tap
    - brew install aws-sam-cli
    - sam --version

Expected behavior
sam --version should have the output SAM CLI, version 1.0.0

What happened
sam --version had the following output

Command 'sam' not found, but there are 18 similar ones.
The command "sam --version" failed and exited with 127 during .

Environment

  • Homebrew version 2.4.16
  • aws-cli version 1.18.129
  • Node.js Version: v12.16.3
  • OS: linux
  • Dist: bionic

Other
The only difference I have found between my old successful build and the current failed is the homebrew version from 2.4.14 to 2.4.16

Unable to add tap - Invalid formula: /opt/homebrew/Library/Taps/aws/homebrew-tap/Formula/eks-anywhere.rb

OS X Big Sur 11.5.2
Apple M1

➜ brew --version
Homebrew 3.2.11
Homebrew/homebrew-core (git revision 4f77196f8a; last commit 2021-09-09)
Homebrew/homebrew-cask (git revision 7edff39a8e; last commit 2021-09-09)

➜ brew tap aws/tap
==> Tapping aws/tap
Cloning into '/opt/homebrew/Library/Taps/aws/homebrew-tap'...
remote: Enumerating objects: 2222, done.
remote: Counting objects: 100% (985/985), done.
remote: Compressing objects: 100% (631/631), done.
remote: Total 2222 (delta 817), reused 450 (delta 353), pack-reused 1237
Receiving objects: 100% (2222/2222), 355.74 KiB | 110.00 KiB/s, done.
Resolving deltas: 100% (1478/1478), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/aws/homebrew-tap/Formula/eks-anywhere.rb
formulae require at least a URL
Error: Cannot tap aws/tap: invalid syntax in tap!

Deprecated warnings for aws-sam-cli

I've started getting the following whenever I run brew upgrade:

Warning: Calling `cellar` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:19

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:20

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:21

sam cli not installing with brew

When I run brew install aws-cam-cli i am getting error.

import setuptools, tokenize
file = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(file).read()
.replace('\r\n', '\n'), file, 'exec'))
--no-user-cfg
install
--prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181114-49871-18qsdja/target
--install-scripts=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181114-49871-18qsdja/target/bin
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'setuptools'

aws-sam-cli ignores the system TLS CA store on upgrades

My employer recently instituted SSL inspection using a tampering proxy. This was seamless for most of my clients because the CA is installed in the system stores (both the Keychain root and /etc/ssl/cert.pem) but aws-sam-cli failed to upgrade because it does not use either of those locations. This is also slightly hard to resolve because it deletes the virtualenv when the install fails so you can't fix it and resume.

In case anyone else encounters this, I made two changes which resolved this:

  1. pip3.8 install --upgrade certificate — not in love with updating the global install but this is a pretty solid package
  2. brew reinstall aws-sam-cli to remove and reinstall the virtualenv, avoiding the upgrade

This feels like the upgrade process should handle this more gracefully by installing the same versions of pip/certifi which you'd get on a fresh install but since there's a workaround the impact is relatively low.

Log of the failure
=> python3.8 -m venv --system-site-packages /opt/homebrew/Cellar/aws-sam-cli/1.76.0/libexec
==> /opt/homebrew/Cellar/aws-sam-cli/1.76.0/libexec/bin/pip install --upgrade pip
Last 15 lines from /Users/cadams/Library/Logs/Homebrew/aws-sam-cli/02.pip:
install
--upgrade
pip

Requirement already satisfied: pip in /opt/homebrew/Cellar/aws-sam-cli/1.76.0/libexec/lib/python3.8/site-packages (22.0.4)
Collecting pip
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))': /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))': /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))': /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))': /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))': /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/07/51/2c0959c5adf988c44d9e1e0d940f5b074516ecc87e96b1af25f59de9ba38/pip-23.0.1-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))

aws-sam-cli installation fails on macOS 11.3.1 because of missing [email protected]

Im trying to get up and running with aws-sam-cli with homebrew. I've tried various proposed fixes here and elsewhere on the web but havent been able to make it past the following error:

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula with the name "[email protected]" (dependency of aws/tap/aws-sam-cli).
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.```

My brew version is `Homebrew 3.1.11-45-g33e71c9`.

aws/tap/aws-sam-cli 0.6.2 did not build

I have the following config and cannot install aws-sam-cli. I've also added the error messages further below.

HOMEBREW_VERSION: 1.8.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6f458aaed494eaab92622f41f9f1967add00b0f4
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 50a4dc1128e48525f1ebb17b4174faa224134250
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit sandybridge
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 10.0 build 1000
Git: 2.19.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.1, 1.8.0_172
macOS: 10.13.6-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1

==> Downloading https://files.pythonhosted.org/packages/72/ce/68adde8f7e39bfc57b919347ce82d16bc475b1e409a087cfd3e5a3cd58b7/aws-sam-cli-0.6.2.tar.gz
Already downloaded: /Users/volkan/Library/Caches/Homebrew/downloads/4b9db0adf1e0cf381bfe1afa585c9ad2464b706eaa1bcb67437a319624d80f75--aws-sam-cli-0.6.2.tar.gz
==> Verifying 4b9db0adf1e0cf381bfe1afa585c9ad2464b706eaa1bcb67437a319624d80f75--aws-sam-cli-0.6.2.tar.gz checksum
tar xf /Users/volkan/Library/Caches/Homebrew/downloads/4b9db0adf1e0cf381bfe1afa585c9ad2464b706eaa1bcb67437a319624d80f75--aws-sam-cli-0.6.2.tar.gz -C /private/tmp/d20181113-12948-1b5r8g0
cp -pR /private/tmp/d20181113-12948-1b5r8g0/aws-sam-cli-0.6.2/. /private/tmp/aws-sam-cli-20181113-12948-noi3n1/aws-sam-cli-0.6.2
chmod -Rf +w /private/tmp/d20181113-12948-1b5r8g0
==> Downloading https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
Already downloaded: /Users/volkan/Library/Caches/Homebrew/downloads/02e9f856894cc3f1979f2bf31e2f709c30ef64ea80ce14a80cc83e384528d06f--virtualenv-16.0.0.tar.gz
==> Verifying 02e9f856894cc3f1979f2bf31e2f709c30ef64ea80ce14a80cc83e384528d06f--virtualenv-16.0.0.tar.gz checksum
tar xf /Users/volkan/Library/Caches/Homebrew/downloads/02e9f856894cc3f1979f2bf31e2f709c30ef64ea80ce14a80cc83e384528d06f--virtualenv-16.0.0.tar.gz -C /private/tmp/d20181113-12948-1vddv5h
cp -pR /private/tmp/d20181113-12948-1vddv5h/virtualenv-16.0.0/. /private/tmp/aws-sam-cli--homebrew-virtualenv-20181113-12948-18jqha0/virtualenv-16.0.0
chmod -Rf +w /private/tmp/d20181113-12948-1vddv5h
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181113-12948-18jqha0/target --install-scripts=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181113-12948-18jqha0/target/bin --single-version-externally-managed --record=installed.txt
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'setuptools'

Formula request: Session Manager Plugin

Session Manager Plugin is a tool that

If you want to use the AWS Command Line Interface (AWS CLI) to start and end sessions that connect you to your managed instances, you must first install the Session Manager plugin on your local machine. The plugin can be installed on supported versions of Microsoft Windows, macOS, Linux, and Ubuntu Server.

https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html

Related formula: awscli

Issue during Installation of SAM in Mojave

When trying to install the SAM CLI I get the following, as with other issues I've tried relinking Python and postinstalling python too which seemed to go OK.

The Full log of the install is below:

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
doitlive                          exploitdb                         handbrake                         libccd                            netcdf                            netpbm                            supervisor

==> Installing aws-sam-cli from aws/tap
==> Downloading https://files.pythonhosted.org/packages/2d/47/618e89211a10c3fc007949f84e88544722e8f9e43299ed28f188891e53fa/aws-sam-cli-0.10.0.tar.gz
Already downloaded: /Users/nathan/Library/Caches/Homebrew/downloads/c9038134ec8dbf4e1ebdb3491ab530a6198d809d15c5cbe600bcfa08b72e9a34--aws-sam-cli-0.10.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/4e/8b/75469c270ac544265f0020aa7c4ea925c5284b23e445cf3aa8b99f662690/virtualenv-16.1.0.tar.gz
Already downloaded: /Users/nathan/Library/Caches/Homebrew/downloads/bda8bcde19a275fd9c84a7ec957593976e90dfd0e461a87f5698f1d2286c0197--virtualenv-16.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181223-12622-8vgsat/target --install-scripts=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181223-12622-8vgsat/target/bin
==> python3 -s /private/tmp/aws-sam-cli--homebrew-virtualenv-20181223-12622-8vgsat/target/bin/virtualenv -p python3 /usr/local/Cellar/aws-sam-cli/0.10.0/libexec
==> /usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/pip install -v --no-binary :all: --ignore-installed /private/tmp/aws-sam-cli-20181223-12622-1qpbxpe/aws-sam-cli-0.10.0
Last 15 lines from /Users/nathan/Library/Logs/Homebrew/aws-sam-cli/03.pip:
Removed build tracker '/private/tmp/pip-req-tracker-7vq90frg'
Command "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-80e99sw6/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-mlmbilcx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/../include/site/python3.7/regex" failed with error code 1 in /private/tmp/pip-install-80e99sw6/regex/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 791, in install
    spinner=spinner,
  File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 705, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-80e99sw6/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-mlmbilcx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/../include/site/python3.7/regex" failed with error code 1 in /private/tmp/pip-install-80e99sw6/regex/

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/aws/homebrew-tap/issues

Any ideas or suggestions? My knowledge of Python and pip is next to nothing!

aws-sam-cli package download failing on linux homebrew with 404 error

Tap is currently broken in aws-sam-cli-nightly formula

This commit: 19ac097

Seems to have broken the tap:

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli-nightly.rb invalid attribute for formula 'aws/tap/aws-sam-cli-nightly': version (nil) Error: Cannot tap aws/tap: invalid syntax in tap!

copilot-cli zsh completions not working

There are currently 2 versions of the Copilot CLI on Homebrew. This version (aws/tap/copilot-cli) and another (copilot). Both are version 1.0.0. Both are defective.

  1. aws/tap/copilot-cli (this version)
  • CLI works.
  • Zsh completions do not work. Must manually install them.
  1. copilot
  • CLI does not work. Tried copilot init and command failed.
  • Zsh completions work as expected.

Perhaps one version should be removed to prevent confusion.

SAM Cli formula broken after version bump.

❯ brew tap aws/tap        
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.
❯ brew install aws-sam-cli
==> Installing aws-sam-cli from aws/tap
==> Downloading https://linuxbrew.bintray.com/bottles/gdbm-1.19.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/5b330f29b42b96c217b4b59c182191c842c6b2fa84bbdd5f5a9dc93415f3e5d7--gdbm-1.19.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/mpdecimal-2.5.1.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/7fc017555a174433d7eb7471c09b382d3898274de0c55b530370cb48075bdc5b--mpdecimal-2.5.1.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/openssl%401.1-1.1.1j.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/4a9d9cc2615badeee749d98c2f0ad032f0ba53e27d165d38636f17fb35a779c1--openssl@1.1-1.1.1j.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/sqlite-3.34.1.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/11c5ba9694fe0dfe6fe6ccc388fc302402e131ca7ed649895ad93a3bbd914f1b--sqlite-3.34.1.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/xorgproto-2021.3.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/558efc1f7700723d7104a4d30024b5b8337d3cc81b2dc0ee1fac7fcd3d4592e7--xorgproto-2021.3.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/libxcb-1.14_1.x86_64_linux.bottle.1.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/9cd585b09c310a994c01e454fb94557ba5a59298c8e15155e6333c9cdd62cd01--libxcb-1.14_1.x86_64_linux.bottle.1.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/tcl-tk-8.6.11_1.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/87fde177f1a450581720fe1ab1075cb5c8290ffc02f3b88a45b49ea32005578f--tcl-tk-8.6.11_1.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/libffi-3.3_4.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/cda21e004fd33b5246bfccf4d9bb3cea1398ceed844ff03abaa6531ad47363d2--libffi-3.3_4.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/unzip-6.0_7.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/937c172f837ba8e4e7bdd903a90a05c0bd519039ae02a44efb48568e75a56c7d--unzip-6.0_7.x86_64_linux.bottle.tar.gz
==> Downloading https://linuxbrew.bintray.com/bottles/python%403.8-3.8.8_1.x86_64_linux.bottle.tar.gz
Already downloaded: /home/jrmoretti/.cache/Homebrew/downloads/383b0f60b8b8d39edd3036131e6a98ed8cb88a1dde2a24b21d5284916986fc16--python@3.8-3.8.8_1.x86_64_linux.bottle.tar.gz
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.21.0//aws-sam-cli-1.21.1.x86_64_linux.bottle.tar.g
curl: (22) The requested URL returned error: 404                              

Error: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/aws/aws-sam-cli/releases/download/v1.21.0//aws-sam-cli-1.21.1.x86_64_linux.bottle.tar.gz

Cannot install aws sam cli with Homebrew

Hello,

when installing "aws sam cli" with Homebrew i'm getting the following error:
"
==> Installing aws-sam-cli from aws/tap
==> Downloading https://files.pythonhosted.org/packages/2d/47/618e89211a10c3fc00
Already downloaded: /Users/goncalo/Library/Caches/Homebrew/downloads/c9038134ec8dbf4e1ebdb3491ab530a6198d809d15c5cbe600bcfa08b72e9a34--aws-sam-cli-0.10.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/4e/8b/75469c270ac544265f
Already downloaded: /Users/goncalo/Library/Caches/Homebrew/downloads/bda8bcde19a275fd9c84a7ec957593976e90dfd0e461a87f5698f1d2286c0197--virtualenv-16.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/
==> python3 -s /private/tmp/aws-sam-cli--homebrew-virtualenv-20181230-11473-ttz6
==> /usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/pip install -v --no-binary
Last 15 lines from /Users/goncalo/Library/Logs/Homebrew/aws-sam-cli/03.pip:
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 318, in run
resolver.resolve(requirement_set)
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 164, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/local/Cellar/aws-sam-cli/0.10.0/libexec/lib/python3.7/site-packages/pip/_internal/index.py", line 621, in find_requirement
'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for six~=1.11.0 (from aws-sam-cli==0.10.0)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/aws/homebrew-tap/issues
"
Can you help me?

Thanks in advance.

AWS SAM CLI installation broken

Stacktrace:

$ brew install aws-sam-cli
==> Installing aws-sam-cli from aws/tap
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.3.1//aws-sam-cli-1.3.1.x86_64_linux.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/aws/aws-sam-cli/releases/download/v1.3.1//aws-sam-cli-1.3.1.x86_64_linux.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://files.pythonhosted.org/packages/11/74/2c151a13ef41ab9fb43b3c4ff9e788e0496ed7923b2078d42cab30622bdf/virtualenv-16.7.4.tar.gz
Already downloaded: /home/ashutosh/.cache/Homebrew/downloads/507d2087bf24df82641b681a5fe4da778ef50ebe819a86ea1b584f70788f0f63--virtualenv-16.7.4.tar.gz
==> Downloading https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.3.1
==> Downloading from https://codeload.github.com/aws/aws-sam-cli/legacy.tar.gz/v1.3.1
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "aws-sam-cli"
Download failed: https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.3.1

Related issues:
aws/aws-sam-cli#2248
aws/aws-sam-cli#2247

Any way to fix here directly?

aws-sam-cli install fails. Error: Command '['/opt/homebrew/Cellar/aws-sam-cli/1.52.0/libexec/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

This is driving me crazy because I use AWS SAM 99% of the time at work. I had to uninstall/reinstall SAM and I get this error when I try to install it. Any help would be appreciated.

sebastian@Juans-MBP Downloads % brew tap aws/tap
brew install aws-sam-cli
==> Tapping aws/tap
Cloning into '/opt/homebrew/Library/Taps/aws/homebrew-tap'...
remote: Enumerating objects: 3618, done.
remote: Counting objects: 100% (1299/1299), done.
remote: Compressing objects: 100% (309/309), done.
remote: Total 3618 (delta 1169), reused 1042 (delta 990), pack-reused 2319
Receiving objects: 100% (3618/3618), 550.54 KiB | 2.70 MiB/s, done.
Resolving deltas: 100% (2642/2642), done.
Tapped 18 formulae (51 files, 713.7KB).
==> Downloading https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.52.0
==> Downloading from https://codeload.github.com/aws/aws-sam-cli/legacy.tar.gz/refs/tags/v1.52.0
######################################################################## 100.0%
==> Installing aws-sam-cli from aws/tap
==> python3.8 -m venv --system-site-packages /opt/homebrew/Cellar/aws-sam-cli/1.52.0/libexec
Last 15 lines from /Users/sebastian/Library/Logs/Homebrew/aws-sam-cli/01.python3.8:
2022-06-15 22:45:31 +0000

python3.8
-m
venv
--system-site-packages
/opt/homebrew/Cellar/aws-sam-cli/1.52.0/libexec

Error: Command '['/opt/homebrew/Cellar/aws-sam-cli/1.52.0/libexec/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

Specs:
MacOS Monterrey 12.4

sebastian@Juans-MBP Downloads % brew --version
Homebrew 3.5.2
Homebrew/homebrew-core (git revision 49d84ebfb3f; last commit 2022-06-15)
Homebrew/homebrew-cask (git revision 763a50c0b5; last commit 2022-06-15)

sebastian@Juans-MBP Downloads % python3 --version
Python 3.8.0

First install of aws-sam-cli on Docker using linuxbrew/brew:2.5.8 fails

sam command returns a 127 error code after installation from brew on Docker.

Reproduction step
Create the following Dockerfile:

FROM linuxbrew/brew:2.5.8

RUN brew tap aws/tap &&\
    brew install aws-sam-cli &&\
    sam --version

Build the image:

docker build .

Expected result
Docker image is built correctly and the following log line is displayed:

SAM CLI, version 1.7.0

Observed result
Docker image build fails and the following log line is displayed

/bin/sh: 1: sam: not found

Workaround
Running the command brew install aws-sam-cli twice fix the issue

aws-sam-cli installation "Error: Failed to fix install linkage" on macOS Ventura

I am getting these errors on a fresh install and reinstall of aws-sam-cli.

Error: Failed changing dylib ID of /opt/homebrew/Cellar/aws-sam-cli/1.61.0/libexec/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so
  from /opt/homebrew/opt/aws-sam-cli/libexec/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so
    to /opt/homebrew/opt/aws-sam-cli/libexec/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so
Error: Failed to fix install linkage

I've tried reinstalling [email protected], and also manually editing the formula to use python3.9 or python3.10 but get the same Errors.

My setup: macOS 13 Ventura, MacBook Pro M1

HOMEBREW_VERSION: 3.6.9-2-g5b069d3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 5b069d3e91fd27062e03d692fe1d971807985a68
Last commit: 8 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bcf9fc4be3ec2187809e3c96c813eaa853c07031
Core tap last commit: 5 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.38.1 => /opt/homebrew/bin/git
Curl: 7.84.0 => /usr/bin/curl
macOS: 13.0-arm64
CLT: 14.1.0.0.1.1666437224
Xcode: 14.1
Rosetta 2: false

`brew tap aws/sam` uses Github username/password auth which is deprecated (workaround included)

Following this AWS SAM CLI tutorial.

Bug

Homebrew version:

Homebrew 3.5.1
Homebrew/homebrew-core (git revision dc1d562ae72; last commit 2022-06-08)
Homebrew/homebrew-cask (git revision f4c4c79e9c; last commit 2022-06-08)

When I run the following command:

brew tap aws/sam

I get the following error:

Cloning into '/usr/local/Homebrew/Library/Taps/aws/homebrew-sam'...
Username for 'https://github.com': larenelg
Password for 'https://[email protected]': 
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/aws/homebrew-sam/'
Error: Failure while executing; `git clone https://github.com/aws/homebrew-sam /usr/local/Homebrew/Library/Taps/aws/homebrew-sam --origin=origin --template=` exited with 128.

As Github no longer supports username and password authentication on the command line.

I also tried updated my global github config with:

[url "[email protected]:"]
    insteadOf = "https://github.com/"

with no success.

Expected

I expected the tap to clone the repo with [email protected]:aws/homebrew-tap.git, and to successfully add the tap.

Workaround

My workaround was to manually clone the repo instead:

cd /usr/local/Homebrew/Library/Taps
mkdir aws && cd aws
git clone [email protected]:aws/homebrew-tap.git

brew cleanup gives warning "Calling cellar in a bottle block is deprecated!"

Using homebrew 3.1.0 on macOS 10.15.7. Ran brew cleanup and got this message:

$ brew cleanup

Warning: Calling `cellar` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:19

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:20

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:21

brew cleanup  29.96s user 8.42s system 98% cpu 38.833 total

Error seems to be here: https://github.com/aws/homebrew-tap/blob/master/Formula/aws-sam-cli.rb#L19

Extra '/' in download url

Environment

brew version: Homebrew 2.2.16
OS version: MacOS 10.15.5
Current aws-sam-cli version:

How to repeat

brew upgrade aws/tap/aws-sam-cli

Expected Results

Install aws-sam-cli 0.49.0

Received Results

 brew upgrade aws/tap/aws-sam-cli
==> Upgrading 1 outdated package:
aws/tap/aws-sam-cli 0.38.0 -> 0.49.0
==> Upgrading aws/tap/aws-sam-cli 0.38.0 -> 0.49.0
==> Installing dependencies for aws/tap/aws-sam-cli: python
==> Installing aws/tap/aws-sam-cli dependency: python
==> Downloading https://homebrew.bintray.com/bottles/python-3.7.7.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ac/acd595852aecc2bfa46c57d86db716e64d57bb2753c45ff7f745b46c7655dd65?__gda__=exp=1589484398~hmac=3eaeaec49c5da717ca808481a70dc207c4
######################################################################## 100.0%
==> Pouring python-3.7.7.catalina.bottle.tar.gz
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/l
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/l
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/l
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python/3.7.7: 4,006 files, 61.2MB
==> Installing aws/tap/aws-sam-cli
==> Downloading https://github.com/awslabs/aws-sam-cli/releases/download/v0.48.0//aws-sam-cli-0.49.0.sierra.bottle.tar.gz
##O=#  #
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/awslabs/aws-sam-cli/releases/download/v0.48.0//aws-sam-cli-0.49.0.sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://api.github.com/repos/awslabs/aws-sam-cli/tarball/v0.49.0
==> Downloading from https://codeload.github.com/awslabs/aws-sam-cli/legacy.tar.gz/v0.49.0
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/11/74/2c151a13ef41ab9fb43b3c4ff9e788e0496ed7923b2078d42cab30622bdf/virtualenv-16.7.4.tar.gz
######################################################################## 100.0%
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20200514-16947-1arima7/target --install-scripts=/private/tmp/aws-
==> python3 -s /private/tmp/aws-sam-cli--homebrew-virtualenv-20200514-16947-1arima7/target/bin/virtualenv -p python3 /usr/local/Cellar/aws-sam-cli/0.49.0/libexec
==> /usr/local/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install pip==19.2.3
==> /usr/local/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install -v --ignore-installed /private/tmp/aws-sam-cli-20200514-16947-d9pf4r/awslabs-aws-sam-cli-2f46818
==> /usr/local/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip uninstall -y aws-sam-cli
==> /usr/local/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-sam-cli-20200514-16947-d9pf4r/awslabs-aws-sam-
load: 1.80  cmd: python3.7 17082 running 0.41u 0.22s
🍺  /usr/local/Cellar/aws-sam-cli/0.49.0: 6,223 files, 81.1MB, built in 2 minutes 28 seconds
Removing: /usr/local/Cellar/aws-sam-cli/0.38.0... (4,620 files, 67.9MB)
==> Checking for dependents of upgraded formulae...
==> No dependents found!
==> Caveats
==> python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

This isn't a huge deal locally, but I'm using aws-sam-cli in my CI scripts and it's causing build failures.

docker_image: circleci/php:7.4-cli

==> Tapping aws/tap
 
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap'...
 
remote: Enumerating objects: 12, done.        
 
remote: Counting objects: 100% (12/12), done.        
 
remote: Compressing objects: 100% (9/9), done.        
 
remote: Total 12 (delta 0), reused 6 (delta 0), pack-reused 0        
 
Unpacking objects: 100% (12/12), done.
 
Tapped 1 formula (43 files, 171.9KB).
 
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
 
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
 
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
 
==> Installing aws-sam-cli from aws/tap
 
==> Installing dependencies for aws/tap/aws-sam-cli: python
 
==> Installing aws/tap/aws-sam-cli dependency: python
 
==> Downloading https://linuxbrew.bintray.com/bottles/python-3.7.7_1.x86_64_linu
 
==> Downloading from https://akamai.bintray.com/9f/9ffe49b04a0035181663e41fd8b77
 
######################################################################## 100.0%
 
==> Pouring python-3.7.7_1.x86_64_linux.bottle.tar.gz
 
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.7_1/bin/python3 -s setup.py --n
 
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.7_1/bin/python3 -s setup.py --n
 
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.7_1/bin/python3 -s setup.py --n
 
==> Caveats
 
Python has been installed as
 
  /home/linuxbrew/.linuxbrew/bin/python3
 

 
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
 
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
 
  /home/linuxbrew/.linuxbrew/opt/python/libexec/bin
 

 
You can install Python packages with
 
  pip3 install <package>
 
They will install into the site-package directory
 
  /home/linuxbrew/.linuxbrew/lib/python3.7/site-packages
 

 
See: https://docs.brew.sh/Homebrew-and-Python
 
==> Summary
 
🍺  /home/linuxbrew/.linuxbrew/Cellar/python/3.7.7_1: 3,654 files, 67MB
 
==> Installing aws/tap/aws-sam-cli
 
==> Downloading https://github.com/awslabs/aws-sam-cli/releases/download/v0.48.0
 

 
curl: (22) The requested URL returned error: 404 Not Found
 
Error: Failed to download resource "aws-sam-cli"
 
Download failed: https://github.com/awslabs/aws-sam-cli/releases/download/v0.48.0//aws-sam-cli-0.49.0.x86_64_linux.bottle.tar.gz
 
Warning: Bottle installation failed: building from source.
 
==> Downloading https://api.github.com/repos/awslabs/aws-sam-cli/tarball/v0.49.0
 
==> Downloading from https://codeload.github.com/awslabs/aws-sam-cli/legacy.tar.
 
######################################################################## 100.0%
 
==> Downloading https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a
 
######################################################################## 100.0%
 
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/aws-sam-
 
==> python3 -s /tmp/aws-sam-cli--homebrew-virtualenv-20200514-9730-2sgjnb/target
 
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install
 
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install
 
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip uninsta
 
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.49.0/libexec/bin/pip install
 
Error: invalid byte sequence in US-ASCII
 
Please report this issue:
 
  https://docs.brew.sh/Troubleshooting
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula_installer.rb:337:in `gsub'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula_installer.rb:337:in `install'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:329:in `install_formula'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:261:in `block in install'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:259:in `each'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:259:in `install'
 
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'

Installing latest version of aws-sam-cli fails

When I run brew install aws-sam-cli, I get the following error:

==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.18.2//aw
##O#- #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/aws/aws-sam-cli/releases/download/v1.18.2//aws-sam-cli-1.19.0.sierra.bottle.tar.gz

Perhaps there is a mismatch in bottle-configs/aws-sam-cli.json? It appears that the version is set to 1.19.0, but the root is set to 1.18.2.

{
    "version": "1.19.0",
    "url": "https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.19.0",
    "sha256": "25f1f0ee5cbcffac7667777b2068776c2b63195c2c89bd45ca2a279513b88626",
    "name": "aws-sam-cli",
    "bin": "sam",
    "bottle": {
        "root_url": "https://github.com/aws/aws-sam-cli/releases/download/v1.18.2/",
        "sha256": {
            "sierra": "04486dbbf2fa894e114675da2df029f30a2a5ae58280565179b6e0193762baf5",
            "linux": "7827e7034f649280271240d0344099c4ebd4840e634b93e704b09af91df2ad41"
        }
    }
}

Upgrade to Python 3.8 Seems to Break Install

We do a CI/CD with homebrew install aws-sam-cli. The install stopped working about 12 hours ago. The upgrade to [email protected] seems to be the cause. If it's relevant the Docker instance we use has Python v3.5.3 and Python v2.7.13.

We get the following messaging when we install:

######################################################################## 100.0%
==> Pouring [email protected]_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.1/bin/python3 -s setup.py -
==> /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.1/bin/python3 -s setup.py -
==> /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.1/bin/python3 -s setup.py -
==> Caveats
Python has been installed as
  /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/python3

You can install Python packages with
  /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/pip3 install <package>
They will install into the site-package directory
  /home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

[email protected] is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew,
because this is an alternate version of another formula.

If you need to have [email protected] first in your PATH run:
  echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile

For compilers to find [email protected] you may need to set:
  export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/[email protected]/lib"
  export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/[email protected]/include"

For pkg-config to find [email protected] you may need to set:
  export PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/pkgconfig"

==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.1: 3,747 files, 69.1MB
==> Installing aws/tap/aws-sam-cli
==> Downloading https://github.com/awslabs/aws-sam-cli/releases/download/v0.43.0
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws

[...]

/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.43.0/libexec/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

So the issue seem to be either that the paths/flags aren't correctly set because we're using a keg-only brew or that aws-sam-cli is expecting a version 3.7 of something and is not finding it.

(I'm running some experiments to get around this and will report/comment if I find anything).

aws-sam-cli install failing on linux homebrew

We are seeing this in GH actions. This just started today. Was working fine yesterday. Below is the output of installing brew and the failure on not finding a sqlite bottle for aws-sam-cli

Any idea why this would start failing all of the sudden?

This is currently breaking our CI and blocking deployments

Run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> Checking for `sudo` access (which may request your password).
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> The following existing directories will be made writable by user only:
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod u+rwx /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod 755 /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chown -R runner:docker /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
From https://github.com/Homebrew/brew
   698c49067..1f3be6f72  master     -> origin/master
 * [new tag]             3.0.11     -> 3.0.11
HEAD is now at 1f3be6f72 Merge pull request #11093 from Bo98/ghp-keep-old
To restore the stashed changes to /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core, run:
  cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop
Updated 1 tap (homebrew/core).
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Add Homebrew to your PATH in /home/runner/.bash_profile:
    echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bash_profile
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
- Install the Homebrew dependencies if you have sudo access:
    sudo apt-get install build-essential
    See https://docs.brew.sh/linux for more information
- We recommend that you install GCC:
    brew install gcc

7s
Run brew tap aws/tap && brew install aws-sam-cli
  brew tap aws/tap && brew install aws-sam-cli
  shell: /usr/bin/bash -e {0}
==> Tapping aws/tap
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap'...
Tapped 11 formulae (56 files, 443.7KB).
==> Installing aws-sam-cli from aws/tap
==> Downloading https://linuxbrew.bintray.com/bottles/gdbm-1.19.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/4a/4a7a9202e5be9030b1cba354b3f595e892be916090d9559d97740bb4dfa5481f?__gda__=exp=1617995531~hmac=eda387abaf80b022b990c67c4f427c99d851a1d22f6a00c43c4c45921764cb58&response-content-disposition=attachment%3Bfilename%3D%22gdbm-1.19.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_LSf6UJD50V2C1f_r9q4PWJzDamRpiK52bcXGeG47QZOB36HY3_mGpAEWnRrVXKIJzKy6FSTPlDLroFu7SN93udgE87w7bVn0JzElosRa1lRmygtwSR-sOH_0azKCj6G4AaUb-gMqhRQ&response-X-Checksum-Sha1=ed4e445e442bb9812401300bee1fcb153b0702f4&response-X-Checksum-Sha2=4a7a9202e5be9030b1cba354b3f595e892be916090d9559d97740bb4dfa5481f
==> Downloading https://linuxbrew.bintray.com/bottles/mpdecimal-2.5.1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ed/ed8fc5c5367e699f222010c2a387785f64dfa185c536843eb5f5cf3ae0b3ce3c?__gda__=exp=1617995531~hmac=c23e4891de43e32fc950fec3c97bb4ff8823ebdeab955ab4c485c10bbfd3a269&response-content-disposition=attachment%3Bfilename%3D%22mpdecimal-2.5.1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19H-qL3fuJAaz39kpG-3jUvyABQu8q4U_T30siER0YAI4sHMtnzLrQ5sTzvjDRgynWipUXCfTNsvsdeYkDcT-u6noBMy-cU73PzekxthVTEcRaLB8dmDjkytG8FJ5BYXwVhwebeJELFVQ&response-X-Checksum-Sha1=c3b8c9e5cbeac39624b35dcb2096ea65920dcc75&response-X-Checksum-Sha2=ed8fc5c5367e699f222010c2a387785f64dfa185c536843eb5f5cf3ae0b3ce3c
==> Downloading https://linuxbrew.bintray.com/bottles/openssl%401.1-1.1.1k.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/d7/d7b7cc5b85d3c73a07e17a25d21f5bf805112dc8df298664e51b8722dff0a667?__gda__=exp=1617995532~hmac=2164bca6fa03bc15ea9a2916c17a230bf814d0c4e5936419716179235629f56c&response-content-disposition=attachment%3Bfilename%3D%22openssl%401.1-1.1.1k.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_Owl-U_c5nVG9WHT8yRM8a7MsiziVqyiPxqUJGGAH10Q9RhluBdE-upNJJJrcwfCueyEON1_eBsqpnUfAxsm3rNLtuw81fW0WG3UqtMmWQL6FaViVnNz_mUWHJVBBnMksDxqBSXXx93A&response-X-Checksum-Sha1=43db15cc2332e300720afee3b5e497d351d81c5f&response-X-Checksum-Sha2=d7b7cc5b85d3c73a07e17a25d21f5bf805112dc8df298664e51b8722dff0a667
==> Downloading https://linuxbrew.bintray.com/bottles/ncurses-6.2.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/fc/fc5a0983a8afae8ef46945f3bec9dba9d66e81e879027d100d05088ea6f8043d?__gda__=exp=1617995533~hmac=ac7efdbf704dd9137000813d931cf46854e22d8a53f5a7378d0276f86b2f604c&response-content-disposition=attachment%3Bfilename%3D%22ncurses-6.2.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX18BJasBvP6dJ6v5sr3vDVg2fI-CYsM-jgzP5P3Bt1OC1wMnR8G_qUXCkLiujaL-lfvq2TMMLzZVvd_5WCho4gpr7xDSPXgdRszJRMmERguVtPLfH4qbVtcQk9ydDKrNp5ORfa_PVyxGYg&response-X-Checksum-Sha1=a990ea06bc56b17957c3d2a17d16d60ec9da6ec1&response-X-Checksum-Sha2=fc5a0983a8afae8ef46945f3bec9dba9d66e81e879027d100d05088ea6f8043d
==> Downloading https://linuxbrew.bintray.com/bottles/readline-8.1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/cf/cf7ae93f4dc5560c7c7fac35d3fbb7f528a43f3084daf2273e67032d131bdb04?__gda__=exp=1617995533~hmac=0ae69914e7c1be97bfedd097e22e035ed846127f82dd754bdd88a3198d148720&response-content-disposition=attachment%3Bfilename%3D%22readline-8.1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX18OA70ZMgjdMzE15NOOKsh3Dz53vfu7gvMPjPWSYC7EPQA7-Sq2VkF5_USFhmx3-G7Eae_1POKWMVoZjEvn_hL4talWGwyr8mCC8HXvBo9Vq69h7y8O33ivR6ZwXv358LicZlP8fKuecg&response-X-Checksum-Sha1=30253e8f018cf6f2b1cff62fabecd90616371d49&response-X-Checksum-Sha2=cf7ae93f4dc5560c7c7fac35d3fbb7f528a43f3084daf2273e67032d131bdb04
==> Downloading https://linuxbrew.bintray.com/bottles/zlib-1.2.11.x86_64_linux.bottle.tar.gz
Error: sqlite: no bottle available!
You can try to install from source with:
  brew install --build-from-source sqlite
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
Error: Process completed with exit code 1.

Issue when installation of AWS-SAM-CLI in MacOS Mojave (10.14)

I tried to install SAM Cli from the following documentation.
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html

The last step is giving the following error. But I have the Python updated and has both the system python (2.7) and also Python3 installed.

Selvaganeshs-MacBook-Pro:~ selva$ brew install aws-sam-cli
==> Installing aws-sam-cli from aws/tap
==> Downloading https://files.pythonhosted.org/packages/8f/29/a0cb402d1875d0b35aa7c99b644a75fc72762dce25bc4fce7d62e1b70825/aws-sam-cli-0.8.1.tar.gz
Already downloaded: /Users/selva/Library/Caches/Homebrew/downloads/b87ebb48e5c20ee282fd4289ef9aabe2a660aa64fe6c9d407175f307f920a816--aws-sam-cli-0.8.1.tar.gz
==> Downloading https://files.pythonhosted.org/packages/4e/8b/75469c270ac544265f0020aa7c4ea925c5284b23e445cf3aa8b99f662690/virtualenv-16.1.0.tar.gz
Already downloaded: /Users/selva/Library/Caches/Homebrew/downloads/bda8bcde19a275fd9c84a7ec957593976e90dfd0e461a87f5698f1d2286c0197--virtualenv-16.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181205-49570-i3buef/target --install-scripts=/private/tmp/aws-sam-cli--homebrew-virtualen
Last 15 lines from /Users/selva/Library/Logs/Homebrew/aws-sam-cli/01.python3:
-c
import setuptools, tokenize
file = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(file).read()
.replace('\r\n', '\n'), file, 'exec'))
--no-user-cfg
install
--prefix=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181205-49570-i3buef/target
--install-scripts=/private/tmp/aws-sam-cli--homebrew-virtualenv-20181205-49570-i3buef/target/bin
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'setuptools'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):

https://github.com/aws/homebrew-tap/issues

[BUG] config_provider.rb:1: syntax error, unexpected <<

After a brew upgrage:

Warning: Some installed formulae are not readable:
  aws-sam-cli: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap/ConfigProvider/config_provider.rb:1: syntax error, unexpected <<
<<<<<<< Updated upstream
^~
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap/ConfigProvider/config_provider.rb:74: syntax error, unexpected ===, expecting end-of-input
=======
^~~

I don't see it in the repo but there's also no update for the formula coming in through brew.

Reinstall doesn't help.

Getting "broken dependent from source" when installing sam-cli on Homebrew for Linux

Our CI/CD involves installing sam-cli using basically:

brew tap aws/tap
brew install aws-sam-cli

After installing Homebrew for Linux.

Our last successful build was three days ago ( August 28th). (We didn't try another build until the 31st.)

Today we're getting this:

> ==> No outdated dependents to upgrade!
> ==> Checking for dependents of upgraded formulae...
> ==> Reinstalling 1 broken dependent from source:
> aws/tap/aws-sam-cli

When the system tries to run sam --version , it gets sam: command not found

Let me know what other information I can provide.

Unable to install aws-sam-cli using Linuxbrew on Ubuntu

Hello,

I am getting below error while installing aws-sam-cli using brew:

_==> Installing aws-sam-cli from aws/tap
==> Downloading https://files.pythonhosted.org/packages/92/df/3e8c8a65075d810f8f35157d60c06461061f51c3713c47ca3afaef2c5b89/aws-sam-cli-0.15.0.tar.gz
Already downloaded: /home/ubuntu/.cache/Homebrew/downloads/ff0d5369448d0410046d92b82f88c194df5ef137651c42e41a67b3dac4fd8f76--aws-sam-cli-0.15.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/37/db/89d6b043b22052109da35416abc3c397655e4bd3cff031446ba02b9654fa/virtualenv-16.4.3.tar.gz
Already downloaded: /home/ubuntu/.cache/Homebrew/downloads/5ef64a64cc03693fde53fa854689f38961d1645c648e8a47d4235e714a07e04d--virtualenv-16.4.3.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target --install-scripts=/tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target/bin --single-ver
==> python3 -s /tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target/bin/virtualenv -p python3 /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/pip install -v --no-binary :all: --ignore-installed /tmp/aws-sam-cli-20190424-18984-1dct2pk/aws-sam-cli-0.15.0
Last 15 lines from /home/ubuntu/.cache/Homebrew/Logs/aws-sam-cli/03.pip:
Removed build tracker '/tmp/pip-req-tracker-h0274guc'
ERROR: Command "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-_xw3v7gl/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-gv7tz2zm/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/include/site/python3.7/regex" failed with error code 1 in /tmp/pip-install-_xw3v7gl/regex/
Exception information:
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/req/init.py", line 58, in install_given_reqs
**kwargs
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 953, in install
spinner=spinner,
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-_xw3v7gl/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-gv7tz2zm/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/include/site/python3.7/regex" failed with error code 1 in /tmp/pip-install-_xw3v7gl/regex/

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/aws/homebrew-tap/issues_

Can you please help?

Running `brew tap aws/tap` on GitHub actions fails

Hi,

currently all of my CI jobs on GitHub actions fail when they run brew tap aws/tap.
The issue first occurred as of today, so I guess something you changed here caused the failure?

Error log from GitHub Actions:

==> Tapping aws/tap
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap'...
Error: Invalid formula: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/aws/homebrew-tap/Formula/qldbshell.rb
formulae require at least a URL
Error: Cannot tap aws/tap: invalid syntax in tap!
Error: Process completed with exit code 1.

Reproduction repo here: https://github.com/ofhouse/repro-brew-tap-aws

SAM CLI installation broken due to python version inconsistency

Looks like brew install aws-sam-cli resolves the python dependency to [email protected] but the bottled 0.53.0 comes with python3.7 executables.

This leads to the following error when trying to run sam: dyld: Library not loaded: @executable_path/../.Python

Maybe update the following line for [email protected] or make a new bottle with python 3.8?

depends_on "python"

A workaround is to brew install --build-from-source aws-sam-cli.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.