kiran
09/14/2022, 7:06 PMimport psycopg2
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'
Nate
09/14/2022, 7:26 PM{"EXTRA_PIP_PACKAGES": "psycopg2"}
to the env
section of your infrastructure block, which will install it each time the flow runs (somewhat inefficient)
and then the cleanest solution would be to pip install psycopg2
wherever your flows will run (i.e. from your requirements.txt
in a Dockerfile or in a venv on some VM where your agent runs)Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by