kiran09/14/2022, 7:06 PM
from somewhere else instead? Running 2.3.2
Flow could not be retrieved from deployment. Traceback (most recent call last): File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/tmpcre52tf5prefect/SCRIPTNAME.py", line 3, in <module> import psycopg2 ModuleNotFoundError: No module named 'psycopg2'
Nate09/14/2022, 7:26 PM
section of your infrastructure block, which will install it each time the flow runs (somewhat inefficient) and then the cleanest solution would be to
wherever your flows will run (i.e. from your
pip install psycopg2
in a Dockerfile or in a venv on some VM where your agent runs)