steep-lamp-20408
09/21/2022, 11:32 PM__main__.py
working fine, executed with pulumi up
CLI command.
In that script I need to use the Python toml
module, so I installed it the project dependencies and venv. Now, when I do pulumi up
, I get the error:
import toml
ModuleNotFoundError: No module named 'toml'
(needless to say everything is done in a venv where I double checked that toml
was actually installed, with pip list
).
It would seem that it’s not supported by Pulumi to use third-party Python modules in a Pulumi script? Or did I miss something?billowy-army-68599
venv/bin/pip3 install toml
steep-lamp-20408
09/21/2022, 11:33 PMpip list
shows toml
. Will edit my questionbillowy-army-68599
Pulumi.yaml
?steep-lamp-20408
09/21/2022, 11:38 PMcan you share yourOh thanks, I think it might be very probably because of that. My?Pulumi.yaml
Pulumi.yaml
doesn’t point to the same venv.name: myproject
runtime:
name: python
options:
virtualenv: .venv
description: myproject description
billowy-army-68599
steep-lamp-20408
09/21/2022, 11:40 PM