Good morning! I have been encountering an error, a...
# python
g
Good morning! I have been encountering an error, and after a reinstall of both Pulumi v 2.11.2 and Python 3.9, it is still occurring. Any help would be appreciated: 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
c
@gorgeous-hospital-30611 cd to your folder that your stack will be created in. Then you need to create a Python virtualenv, activate it, and install dependencies:
Copy code
$ python3 -m venv venv
$ venv/bin/python -m pip install --upgrade pip setuptools wheel
$ venv/bin/python -m pip install -r requirements.txt
That should get you going.
g
Thank @cool-fireman-90027! I don't want to burn too many of your cycles, but I am still not able to get it to progress:
Andrews-MacBook-Air:aws-python3 andrewdemars$ python3 -m venv venv Andrews-MacBook-Air:aws-python3 andrewdemars$ venv/bin/python -m pip install --upgrade pip setuptools wheel Requirement already up-to-date: pip in ./venv/lib/python3.9/site-packages (20.2.3) Collecting setuptools  Using cached setuptools-50.3.0-py3-none-any.whl (785 kB) Collecting wheel  Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB) Installing collected packages: setuptools, wheel  Attempting uninstall: setuptools   Found existing installation: setuptools 49.2.1   Uninstalling setuptools-49.2.1:    Successfully uninstalled setuptools-49.2.1 Successfully installed setuptools-50.3.0 wheel-0.35.1 Andrews-MacBook-Air:aws-python3 andrewdemars$ venv/bin/python -m pip install -r requirements.txt ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' Andrews-MacBook-Air:aws-python3 andrewdemars$
c
g
Yes sir, I also repeated it, and am getting the same error:
f
Does your
Pulumi.yaml
have the virtualenv option set? You should see:
Copy code
options:
    virtualenv: venv
in there. If not, you’ll have to activate the venv yourself