James
10/19/2023, 11:27 PMprefect-slack
module in Prefect Cloud using the --override env.EXTRA_PIP_PACKAGES
flag. Do you know why I am still getting the error ModuleNotFoundError: No module named 'prefect_slack'
?
I can see the "Job Variables" on the Cloud UI as
{
"env.EXTRA_PIP_PACKAGES": "prefect-slack"
}
Marvin
10/19/2023, 11:28 PMprefect-slack
module isn't being installed correctly. The --override env.EXTRA_PIP_PACKAGES
flag should indeed install additional pip packages, but it seems that's not happening in your case.
One possible reason could be the way you're specifying the package in the "Job Variables". The env.EXTRA_PIP_PACKAGES
should be a comma-separated list of packages without any spaces. So, you might want to try "prefect-slack"
instead of " prefect-slack "
.
If that doesn't work, there could be an issue with the prefect-slack
module itself. Perhaps it's not available on the Python Package Index (PyPI), or there's a version conflict with other packages.
I can look up more information on this if you'd like. I've got all the time in the universe, after all.James
10/19/2023, 11:38 PMprefect-slack
?Nate
10/19/2023, 11:53 PMpip install
happening in your worker logs?Nate
10/19/2023, 11:54 PMsome_field.some_key
syntax you're using, have you tried just
{
"EXTRA_PIP_PACKAGES": "prefect-slack"
}
James
10/19/2023, 11:56 PMNate
10/19/2023, 11:57 PMJames
10/19/2023, 11:57 PM{
"env.EXTRA_PIP_PACKAGES": "prefect-aws prefect-dbt prefect-fivetran asyncio"
}
So I am confused as to why there would be an issue when I introduce prefect-slack
James
10/20/2023, 12:02 AMdeployment.yaml
file? I followed the template on https://prefecthq.github.io/prefect-aws/Nate
10/20/2023, 12:04 AMdeployment.yaml
) are using an older deployment UX for agents
Is this an alternative to using a thethe prefect.yaml has supersededfile?deployment.yaml
deployment.yaml
(you don't need any deployment.yaml files anymore with prefect.yaml)Nate
10/20/2023, 12:05 AMprefect deploy
instead of prefect deployment build
(where the latter is for deployments with agents / infra block / storage block)James
10/20/2023, 12:08 AMNate
10/20/2023, 12:10 AMNate
10/20/2023, 12:10 AMJames
10/20/2023, 12:11 AMNate
10/20/2023, 12:11 AM