aws / homebrew-tap

Homebrew formulae that allows installation of AWS tools through the Homebrew package manager.
Apache License 2.0
107 stars 96 forks source link

aws-sam-cli installation fails on macOS 11.3.1 because of missing python@3.8 #207

Open ericHgorski opened 3 years ago

ericHgorski commented 3 years ago

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 "python@3.8" (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`.
ghost commented 3 years ago

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 "python@3.8" (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`.

I run these commands, and then the ones to install aws.sam-cli, I got several erros but by executing the same solutions it suggest, at the end, it worked

rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core; brew update

zaichang commented 2 years ago

The solution posted by @silvanojulio-haul worked for me

dudutwizer commented 2 years ago

Had the same issue, had to remove /opt/homebrew/Library/Taps/homebrew/homebrew-core folder and it solved the issue. Thanks!

IgorLumigo commented 2 years ago

Worked for me as well

brigandimedacta commented 2 years ago

i run brew doctor and fix the warning with the commands that show up. After the sam-cli installation works.

jamesiweobi commented 2 years ago

Thank you @silvanojulio-haul your solution worked for me

lokeshjain2008 commented 2 years ago

Thanks , @brigandimedacta brew doctor solved the issue for me. Below is the output of the it.

Warning: Homebrew/homebrew-core was not tapped properly! Run:
  rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
  brew tap homebrew/core

running both commands solved issue for me.

sadidul012 commented 2 years ago

I had to add the below 3 lines into ~/.zshrc after installing python3.8 with brew install --build-from-source python@3.8 on my MacBook M1 2020 -

export LDFLAGS="-L/opt/homebrew/opt/python@3.8/lib"
export PKG_CONFIG_PATH="/opt/homebrew/opt/python@3.8/lib/pkgconfig"
export PATH="/opt/homebrew/opt/python@3.8/bin:$PATH"