aws-stepfunctions-examples icon indicating copy to clipboard operation
aws-stepfunctions-examples copied to clipboard

Build error for genai-prompt-chaining-hitl usecase

Open brnkrygs opened this issue 2 years ago • 1 comments

Hello, thank you for your work on these examples!

I'm trying to deploy the genai-prompt-chaining-hitl usecase to one of my AWS accounts. When I follow the steps in the README, I get the following error:

➜  cdk (main) ✔ cdk deploy --all                                                                
Traceback (most recent call last):
  File "/...path-to-clone.../aws-stepfunctions-examples/usecases/genai-prompt-chaining-hitl/stack/cdk/app.py", line 5, in <module>
    import aws_cdk as cdk
ModuleNotFoundError: No module named 'aws_cdk'

Subprocess exited with error 1

It it possible I need to install/manage some prerequisite libraries before being able to deploy? If so, could you specify which ones and how I can best set them up? Thanks!

brnkrygs avatar Dec 05 '23 13:12 brnkrygs

Played with this some more... looks like if I create a python venv and install against requirements.txt, I can get CDK to synth/deploy:

cd ../..
python3 -m venv .venv
source .venv/bin/activate
cd stack/cdk
pip3 install -r requirements.txt

brnkrygs avatar Dec 05 '23 14:12 brnkrygs