Hi team I have created deb package of my code wher...
# general
f
Hi team I have created deb package of my code where I am using all dependency but still I am getting this error
Copy code
Previewing update (pulumi-test): 

    pulumi:pulumi:Stack pulumi-test-pulumi-test  Traceback (most recent call last): 
    pulumi:pulumi:Stack pulumi-test-pulumi-test    File \"/root/.pulumi/bin/pulumi-language-python-exec\", line 14, in <module> 
    pulumi:pulumi:Stack pulumi-test-pulumi-test      import pulumi 
    pulumi:pulumi:Stack pulumi-test-pulumi-test  ImportError: No module named 'pulumi' 
    pulumi:pulumi:Stack pulumi-test-pulumi-test  It looks like the Pulumi SDK has not been installed. Have you run pip install? 
    pulumi:pulumi:Stack pulumi-test-pulumi-test  If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv. 
    pulumi:pulumi:Stack pulumi-test-pulumi-test  error: an unhandled error occurred: Program exited with non-zero exit code: 1 
    pulumi:pulumi:Stack pulumi-test-pulumi-test  1 error; 6 messages 

Diagnostics: 
  pulumi:pulumi:Stack (pulumi-test-pulumi-test): 
    Traceback (most recent call last): 
      File \"/root/.pulumi/bin/pulumi-language-python-exec\", line 14, in <module> 
        import pulumi 
    ImportError: 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. 

    error: an unhandled error occurred: Program exited with non-zero exit code: 1
If I go and check my python env then I am not getting any import error
Copy code
root@b43ba04ea07e:/# /opt/ns/python-apps/resourcecreation/app-env/bin/python                                                                                                  
Python 3.7.4 (default, Sep  2 2019, 20:44:09) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulumi
>>>
In this I am not getting this error but I have created API which will call the CLI so I am executing my code on my machine
Copy code
/opt/ns/python-apps/resourcecreation/app-env/bin/python /opt/ns/python-apps/resourcecreation/app-env/lib/python3.7/site-packages/resourcecreation/app.py
Then I am getting error So Can any one tell me is it any way that while calling pulumi commands I point my python binary instead of taking machine default binary?