Hey team I've been trying to run a python script u...
# ask-community
b
Hey team I've been trying to run a python script using prefect to trigger aws glue jobs. I'm getting this weird error which says "'from prefect.tasks.aws.glue import GlueJobRun ModuleNotFoundError: No module named 'prefect.tasks.aws'; 'prefect.tasks' is not a package". Any help would be appreciated.
d
ModuleNotFoundError: No module named 'prefect.tasks.aws'; This line says it all. Maybe u are missing an additionally plugin library? Where did u get that source code from? I doubt prefect comes in bundled up with AWS stuff by default.
b
Do you know which plugin or package needs to installed to run aws glue jobs?
d
Sorry i dont use aws glue.
b
Alright,Thanks!
c
Is this prefect 1 or prefect 2? Prefect2 there is just prefect.tasks, and things like aws are handles as collections. https://github.com/PrefectHQ/prefect/blob/main/src/prefect/tasks.py Prefect1 there is no glue module that I’m aware of - where did that import come from? https://github.com/PrefectHQ/prefect/tree/1.x/src/prefect/tasks/aws