This message was deleted.
s
This message was deleted.
b
is it installed in your virtual env? can you show me your
Pulumi.yaml
?
w
Copy code
cat Pulumi.yaml
name: app-cluster
runtime:
  name: python
  options:
    virtualenv: venv
description: ECS cluster for public-facing web apps and services
b
okay, have you installed your dependencies in the
venv
?
try
venv/bin/pip3 install pulumi pulumi_aws
w
Added the code.
Copy code
python3 -m venv venv
source venv/bin/activate
venv/bin/pip3 install pulumi pulumi_aws
venv/bin/pip3 install .
pulumi up I got error: failed to discover plugin requirements: installing dependencies via '/home/ubuntu/cloud/deployment/src/app_cluster/venv/bin/python -m pip install -r requirements.txt': exit status 1
I got
Copy code
Traceback (most recent call last):
      File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 14, in <module>
        import pulumi
    ModuleNotFoundError: No module named 'pulumi'
    It looks like the Pulumi SDK has not been installed. Have you run pip install?
    If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv.
Did that mean I cannot use setup.py to install. I have to use pip install -r requirements.txt to install. Refer to my code.
1010 Views