Python CRD's are broken because of hard coded utilities.py #71
Labels
kind/bug
Some behavior is incorrect or out of spec
language/python
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
Milestone
Hello!
Issue details
Attempting to generate CRD's for use in Python, and when I try to use them I get an AttributeError saying that the _utilities.py class has no lazy_import function.
https://github.com/pulumi/crd2pulumi/blob/master/gen/python.go#L94 seems to hardcode utilities.py and is missing lazy_import, which is defined in the upstream pulumi codegen code here https://github.com/pulumi/pulumi/blob/b3c56f62c82875d8e907bf4b55f0017b19f2be18/pkg/codegen/python/gen.go#L2602
crd2pulumi is broken on all Python projects as of 671bb76 merging this commit which bumped Pulumi up to v3.21.0, which now requires a bunch of missing utilities.py functions.
Steps to reproduce
Downgrading to v1.0.10 of crd2pulumi is broken because of #50 and v1.1.0 is broken because of this issue.
The text was updated successfully, but these errors were encountered: