cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Importing python to DLT - Not working with DLT Pipeline

AxelBrsn
New Contributor III

Hello, we are trying to adapt our developments (notebook with delta tables), into Delta Live Tables Pipelines.

We tried to import Python files that are very useful for data transformations (silver data cleaning, for example) :

  • From the Cluster (run manually the declarative notebook of DLT) : It's working.
  • From the DLT Pipeline : It's not, it can't find and reach the python files in question.

We tried to import it as Python files, and also as Python library (wheel file extension) :

  • Images are available in attachment.

Thank you for your time, and your help!

1 ACCEPTED SOLUTION

Accepted Solutions

AxelBrsn
New Contributor III

The solution is to import from Python but also add the python file in the Pipeline settings, in the list of source code.

View solution in original post

3 REPLIES 3

Kaniz
Community Manager
Community Manager

Hi @AxelBrsnWhen importing Python files, ensure that they are accessible to DLT Pipelines.

Here are some steps to troubleshoot:

AxelBrsn
New Contributor III

Hello @Kaniz, thanks for the answer, but it's not completely clear on my side.
I want to import, not to install ?

Why the import is not accessible from the DLT Pipeline?

AxelBrsn
New Contributor III

The solution is to import from Python but also add the python file in the Pipeline settings, in the list of source code.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.