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

Import paths using repos and installed libraries get confused

wb
New Contributor II

We use Azure Devops and Azure Databricks and have custom Python libraries. I placed my notebooks in the same repo and the structure is like this:

mylib/
mylib/__init__.pyt
mylib/code.py
notebooks/
notebooks/job_notebook.py
setup.py

Azure pipelines builds the python code into a wheel that we install in the job cluster. We also setup the job run job_notebook.py. Inside this notebook is `import mylib`.

The problem is that mylib that is used is Azure Devops copy and not the wheel that was installed. Locally, when trying to run job_notebook it won't import mylib, but in Databricks it does. Am I missing something here?

Thanks!

1 REPLY 1

Avinash_94
New Contributor III

It looks for the configs locally i suppose if you can share requirements .txt i can elaborate

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.