elegant-carpenter-7681
02/05/2023, 6:17 PMrun_data = Flow('TestsDebug').latest_successful_run.data
run_data.config.config
error message:
368 # would not expect two artifacts with different names to actually
369 # be aliases of one another)
--> 370 yield name, pickle.loads(blob)
ModuleNotFoundError: No module named 'modules'
I am running my flow on GCP with Kubernetes:
My files and folders structure looks like this:
flows/
TestsDebug.py
modules/
__init__.py
config.py
My flow:
from metaflow import FlowSpec, step, kubernetes
class TestsDebug(FlowSpec):
@kubernetes(image='my_image:latest')
@step
def start(self):
from modules.config import Config
self.config = Config()
print('hello')
self.next(self.end)
@step
def end(self):
pass
if __name__ == '__main__':
TestsDebug()
Any idea ?