https://pulumi.com logo
Title
f

flaky-librarian-26344

01/07/2022, 2:55 AM
Hi! I'm working on setting up my first Pulumi project. However, when I try to run "pulumi new aws-python", it says that the pulumi command was not found. Okay, so I reinstall pulumi and pay attention to the feedback I get in Terminal. After listing various casks, it ends with: "/usr/local/Homebrew/Library/Homebrew/brew.rb:15:in `<main>': HOMEBREW_REQUIRED_RUBY_VERSION was not exported! Please call bin/brew directly! (RuntimeError)" .I'm not sure if the issue is that pulumi is installed, but I need to setup the $PATH so that the command pulumi works, or if the issue is that pulumi isn't getting fully installed, in which case, I guess I need to figure out how to call bin/brew directly, or something. I haven't been able to figure out how to do either of those things, so I'd love to get some advice. Thanks!
b

billowy-army-68599

01/07/2022, 4:47 AM
hey @flaky-librarian-26344 - this appears to be an issue with your homebrew installation unfortunately. We only publish the binary to homebrew, and can't debug homebrew issues I'd either take a look here: https://docs.brew.sh/Troubleshooting or use the installation script instead: https://www.pulumi.com/docs/get-started/install/#installation-script
g

great-queen-39697

01/07/2022, 2:46 PM
Just want to call attention to a specific spot in Homebrew's troubleshooting page as I know a bunch of folks skip over it:
Run 
brew update
 twice and 
brew doctor
 (and fix all the warnings) before creating an issue!
Generally, those two commands and following the directions given as a result almost always fix up my Homebrew installation so everything runs cleanly again. I've done that for a bunch of folks at a prior job, so definitely don't miss that line in the docs 😉
f

flaky-librarian-26344

01/07/2022, 10:52 PM
Thanks, @billowy-army-68599 it was a Homebrew issue! And thanks @great-queen-39697 that was exactly what I needed. :)
🎉 1