since what version of `pulumi_aws` should the Dat...
# python
c
since what version of
pulumi_aws
should the Data classes (https://www.pulumi.com/blog/announcing-python-tooling-improvements/#data-classes) be working? i'm on 3.2.1, but the
s3.BucketWebsiteArgs
are not working
g
When you say they are not working, what do you mean?
m
Best results with the latest
pulumi
2.9.2 and
pulumi_aws
3.2.1 packages.
c
i think my pulumi cli was not updated, not sure if that affects, i'm testing again
do i need to configure something on vs code? i installed mypyls and the extension
m
I use VS Code with Pylance installed. https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance I also have Pylance’s basic type checking enabled via the VS code editor setting (it’s not perfect, but I’ve found it to be helpful):
Copy code
"python.analysis.typeCheckingMode": "basic"
When I open a project, after the Python extension is finished loading (shown in the status bar of VS Code), I click the Python interpreter that it is using and set it to the
venv
for my project.
c
yes. i saw the post and installed pylance and set it as default. also the interpreter is correctly set to the venv. but when typing i dont see the box with the types indication (image 1) And i see an error that BucketWebsiteArgs is not member of s3 module (image 2)
m
You’re sure you have
pulumi_aws
3.2.1 installed in the venv? I don’t get any red squiggles and this is what I see when hovering over
BucketWebsiteArgs
.
What does
venv/bin/python -m pip list
show?
This is for the project I’m currently working in:
Copy code
Package    Version
---------- -------
Arpeggio   1.9.2
attrs      20.1.0
dill       0.3.2
grpcio     1.31.0
parver     0.3.0
pip        20.2.2
protobuf   3.13.0
pulumi     2.9.2
pulumi-aws 3.2.1
semver     2.10.2
setuptools 50.0.3
six        1.15.0
wheel      0.35.1
c
versions are fine on my project. i switched to a newly created project just to check, and now I dont see the previous error. but i see a new one related to mypy (image 1) hovering BucketWebsiteArgs says unknown (image 2)