https://pulumi.com logo
#getting-started
Title
# getting-started
r

refined-smartphone-66493

10/20/2023, 2:10 PM
Hello everyone. I'm using Pulumi for the first time. I'm using a M2 Pro Mac. However, initializing a project has proven difficult. This is the end of the massive stack trace I receive when running `pulumi new aws-python`:
Copy code
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grpcio
  Running setup.py clean for grpcio
Failed to build grpcio
ERROR: Could not build wheels for grpcio, which is required to install pyproject.toml-based projects
error: installing dependencies failed; rerun manually to try again, then run `pulumi up` to perform an initial deployment: installing dependencies via '/Users/joaquim.moraes/Documents/lab/pulumi/quickstart/venv/bin/python -m pip install -r requirements.txt': exit status
Curious if anyone using Apple Silicon has also come across issues getting started with Pulumi. Let me know if additional details are needed. I've tried to install Pulumi via homebrew and via tarball file.
I've also tried the manual steps below as suggested here but no luck:
Copy code
rm -rf venv
python3 -m venv venv
venv/bin/python -m pip install --upgrade pip setuptools wheel
venv/bin/python -m pip install -r requirements.txt
spun up a ec2 instance running ubuntu 20.04 and can init a project successfully...def an issue with python on the mac...will continue looking into it
s

salmon-account-74572

10/20/2023, 3:59 PM
@refined-smartphone-66493 I’m using Pulumi on an M1 Mac (running Ventura), and haven’t run into any issues. I was just able to run
pulumi new aws-python
without any issues. I do have a newer version of Python3 installed via Homebrew (
python@3.11
), so perhaps that’s something you could try?
r

refined-smartphone-66493

10/20/2023, 4:01 PM
hum...strange...I'm running Python 3.12... I think this PR my fix my issue: https://github.com/pulumi/pulumi/pull/14259/files
I will try downgrading to 3.11. Thanks @salmon-account-74572
s

salmon-account-74572

10/20/2023, 4:03 PM
Happy to help. Let me know if that resolves your issue.
r

refined-smartphone-66493

10/20/2023, 4:03 PM
Will do
Thank you @salmon-account-74572. Issue solved by downgrading to Python 3.11. Appreciate the help.
s

salmon-account-74572

10/20/2023, 4:23 PM
I know your problem is resolved, but would you mind filing an issue in https://github.com/pulumi/pulumi?
r

refined-smartphone-66493

03/13/2024, 3:17 PM
I'm so sorry @salmon-account-74572. Haven't opened this up in a while. Let me know if you'd still like me to take action on this.
s

salmon-account-74572

03/13/2024, 6:28 PM
If the behavior/error is still occurring, then yes, it would be great if you could open an issue.
r

refined-smartphone-66493

03/13/2024, 8:58 PM
Roger. I'll try again and open the ticket if it is still happening