Describe the bug
sys.path.append should be before importing the custom modules. Otherwise, it won't be able to load them because of their location.
This is typically suggested by linters. Here's the flake8 rule that causes this problem.
Please make sure to disable this rule when running flake8
from attach_compute import get_compute
from workspace import get_workspace
import sys
import os
import time
from azureml.pipeline.core import Pipeline
from azureml.pipeline.steps import DatabricksStep
sys.path.append(os.path.abspath("./aml_service/experiment"))
To Reproduce
Steps to reproduce the behavior:
- Run the
build-train.yml pipeline