Pragna
10/28/2022, 2:31 PM"local_pipeline_package_path": str(Path(__file__).parents[1])
so that code.zip can have parent of parent directory as I have some utility files which I would need to run with pyspark. However, my run fails with ModuleNotFoundError
does anyone have any idea or have faced such issue? Thanks!Zach P
10/28/2022, 2:41 PMPragna
10/28/2022, 2:45 PMZach P
10/28/2022, 2:46 PM#!/bin/bash
sudo yum install -y python3-devel
sudo python3 -m pip install dagster dagster-aws boto3 dagster-spark
sudo python3 -m pip install dagster-pyspark --no-deps
Here’s a snippet from the bootstrap script that I use with EMR, not 100% if this is what is happening to you, but hope it helps 🙂Pragna
10/28/2022, 2:48 PMZach P
10/28/2022, 2:49 PMutils_generic/
dagster_repo_a/
dagster_repo_b/
Eventually I’ll need to change this to only be:
utils_generic/
dagster_repo_a/
Pragna
10/28/2022, 2:51 PM"local_pipeline_package_path"
whenever you have some time to check the setup - please let me know. Thank you for your help, I really appreciate this!Zach P
10/28/2022, 2:52 PMstr(Path(__file__).parent.parent)
Pragna
10/28/2022, 2:54 PMstr(Path(__file__).parents[1])
will do the same thing
but I will try parent.parent also"local_job_package_path"
?Zach P
10/28/2022, 2:55 PMdeploy_local_pipeline_package
set to True
however.Pragna
10/28/2022, 3:00 PMZach P
10/28/2022, 3:00 PM