I'm new in using Pulumi and I got some problem whe...
# python
b
I'm new in using Pulumi and I got some problem when I tried to start new Pulumi project. It shows that I maybe not installed Pulumi SDK, but command "pip list" shows the opposite (pulumi library). Also I tried manually reinstall the library PyYAML, but it didn't help me. Maybe someone knows, why it happend and how may I solve this problem?
d
Can you run
pulumi about
please
You can paste the contents within code blocks here
b
pulumi_problem_2.jpg
d
Oh, just seen something odd in the traceback. It's trying to load the yaml module from greenplum-clients instead of your venv
b
I saw that. That's why I tried to reinstall PyYAML, but it didn't help. And I don't know is it normal behavior (trying to load the YAML module from greenplum) or not? In my opinion no
And I don't know how to fix that
d
It shouldn't be, but I don't know much about how python resolves modules in Windows
b
What about Linux? e.g. Ubuntu
d
Can you check if venv/lib/site-packages/yaml exists?
Also for your venv creation, did you do it yourself, or via pulumi install?
b
it seems like yaml exists
Especially last screenshot
d
I get the gist, but so you know full screen screenshots are unreadable. Windows has something called snipping tool for taking screenshots of rectangles
b
About venv creation: I prepared to launch the project using these instructions https://www.pulumi.com/learn/pulumi-fundamentals/ First of all, I set Pulumi CLI from here: https://www.pulumi.com/docs/install/ I chose "Windows Binary Download" Then I followed these instructions: https://www.pulumi.com/learn/pulumi-fundamentals/create-a-pulumi-project/ and created new project. It means that venv created automatically with creating new project
d
It might be worth reinstalling python, as having greenplum may have broken something
b
Do you mean this root Python? I have two versions of Python: one from Anaconda (guess that 3.9) and IDLE downloaded separately from python.org Which pack of Python ought I to reinstall? Or leave one pack?
d
I'm unfamiliar with how to setup python in Windows, perhaps someone else can jump in and advise