https://pulumi.com logo
#python
Title
# python
b

busy-barista-3617

02/16/2024, 6:15 AM
Hi All, I'm new to Pulumi. Anyone here try to create a new compliance policy
pulumi policy new aws-python
and get it to work successfully lately? I'm getting an error when I try with Pulumi
v3.104.2
. The error I get is:
Copy code
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
h

hundreds-gpu-71155

02/16/2024, 9:39 PM
probably some kind of python/environment mismatch from what's precompiled
check what version of grpcio you're installing and compare it to the wheels in https://pypi.org/project/grpcio/#files
b

busy-barista-3617

02/19/2024, 2:10 AM
Thanks. It's pulling 1.56.2 from the requirements file, which was released in July. What's the best path forward here?
Copy code
Collecting grpcio==1.56.2 (from pulumi-policy<2.0.0,>=1.3.0->-r requirements.txt (line 1))
  Using cached grpcio-1.56.2.tar.gz (24.3 MB)
l

limited-rainbow-51650

02/19/2024, 9:35 AM
@busy-barista-3617 can you update the Pulumi Python SDK to v3.105.0? That version upgraded the grpcio dependency to v1.60.1 which should fix this problem. https://github.com/pulumi/pulumi/releases/tag/v3.105.0
More context on compatibility with Python 3.12 can be found here: https://github.com/pulumi/pulumi/pull/15190