jpuris
09/18/2022, 5:41 PMprefect deployment build flows/redshift_mv_refresh.py:redshift_mv_refresh --name JPMBP-O --queue JPMBP-O --tag "redshift mv-refresh test" --infra process
However I’m running into an issue where the deployment build
command tests the main flow and hence fails as it can not import some of the modules provided by a virtual env.
...
import redshift_connector
ModuleNotFoundError: No module named 'redshift_connector'
...
prefect.exceptions.ScriptError: Script at 'flows/redshift_mv_refresh.py' encountered an exception
An exception occurred.
my project’s directory
❯ tree . -L 2
.
├── flows
│ ├── __pycache__
│ ├── lib
│ └── redshift_mv_refresh.py
├── requirements.txt
└── venv
├── bin
├── include
├── lib
└── pyvenv.cfg
How can I tell deployment build
to look for python in
venv/bin/python
Thank you a bunch!
edit: I’m using Prefect 2 with Cloud.Anna Geller
jpuris
09/18/2022, 8:11 PMjpuris
09/19/2022, 11:40 AM