Alberto_Umana
Databricks Employee
Databricks Employee

Hi @hiryucodes,

Ensure that the directory structure of your project is correctly set up. The module 'src' should be in a directory that is part of the Python path. For example, if your module is in a directory named 'src', the directory structure should look something like this: /Workspace/Repos/your_username/your_project/

    • ├── src/ │
    • ├── __init__.py │
    • ├── your_module.py
    • └── your_pipeline_notebook.py

You can also try to modify the sys.path within your DLT pipeline to include the directory where the 'src' module is located. This can be done by adding the following code at the beginning of your pipeline notebook:

 

import sys
sys.path.append('/Workspace/Repos/your_username/your_project/src')