Mitch
07/19/2023, 6:53 PMprefect deploy
cli command I am getting a module not found error even though the image I included contains that dependency. Is there a way to resolve this?Jake Kaplan
07/19/2023, 7:43 PMprefect deploy
, prefect has to be installed in the environment where you're running the commandMitch
07/19/2023, 7:44 PMJake Kaplan
07/19/2023, 7:46 PMMitch
07/19/2023, 7:46 PMprefect deploy
, only the prefect.yaml and should fail on task run insteadJake Kaplan
07/19/2023, 7:54 PMMitch
07/19/2023, 7:55 PMJake Kaplan
07/19/2023, 8:09 PMclient.create_deployment(...)
directly to make the request (prefect deploy
is a big helper method around that)
⢠you can defer your imports so your file can load and you can use the cli
# instead of:
import my_private_package
@flow
def my_flow():
my_private_package.func()
# do this:
@flow
def my_flow():
import my_private_package
my_private_package.func()
Mitch
07/19/2023, 8:13 PM