Marwan Sarieddine
08/04/2020, 10:30 PMfiles
dictionary and env_vars
- the docker image is built successfully locally and passes the healthchecks, but when the k8s agent tries to create the prefect job I get ModuleNotFoundErrors
josh
08/05/2020, 11:22 AMfiles
dictionary of {src: dest}
are you putting your scripts into a destination where they are importable on the PYTHONPATH?Marwan Sarieddine
08/05/2020, 1:34 PMPYTHON_PATH
instead of PYTHONPATH
- thanks for asking, made me inspect thingsfiles
dictionary is a mapping of absolute paths on your local machine to paths in your container .. if these script files/modules are not part of a python package, then you’d have to set the PYTHONPATH
environment variable to the destination directory in the container, to tell python to also search for modules under that path …