sparse-intern-71089
07/28/2022, 10:15 PMthankful-controller-17230
07/28/2022, 10:25 PMPreviewing update (camus-infra):
panic: fatal: An assertion has failed: failed to convert err no analyzer plugin 'pulumi-analyzer-policy-python' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install analyzer policy-python` to Error, did this come from an RPC endpoint?
thankful-controller-17230
07/28/2022, 10:25 PM$ pulumi plugin install analyzer policy-python
<https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-policy-python/releases/latest>. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: <https://github.com/settings/tokens>
billowy-army-68599
pulumi up --policy-pack
billowy-army-68599
pulumi policy
is the mechanism to public server side policies to the pulumi servicethankful-controller-17230
07/28/2022, 10:28 PMmkdir policy
pulumi policy new --dir policy gcp-python
pulumi preview -s camus-infra --policy-pack policy
thankful-controller-17230
07/28/2022, 10:29 PMpanic: fatal: An assertion has failed: failed to convert err no analyzer plugin 'pulumi-analyzer-policy-python' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install analyzer policy-python` to Error, did this come from an RPC endpoint?
thankful-controller-17230
07/28/2022, 10:30 PMbazel
wrapped build targets and “pyenv” style python environment), which might be part of the problem. I’ll try to repro with a more minimal configthankful-controller-17230
07/28/2022, 10:30 PMthankful-controller-17230
07/28/2022, 10:31 PM3.37.0
but the release notes for 3.37.1
don’t seem relevantbillowy-army-68599
billowy-army-68599
pulumi-analyzer-policy-python
should be in the same path as the binarybillowy-army-68599
thankful-controller-17230
07/28/2022, 10:34 PMbazel
wrapperthankful-controller-17230
07/28/2022, 10:36 PMbazel
grab the release binary for the platform and bundle it with all the python libs, then have a wrapper script that finds the binary and executes it in the python environment.
This gets everyone running exactly the same pulumi
environment with no local python lib wrangling or headachesthankful-controller-17230
07/28/2022, 10:36 PMthankful-controller-17230
07/28/2022, 10:37 PMthankful-controller-17230
07/28/2022, 10:41 PM$PATH
in my wrapper and it works! thanks @billowy-army-68599