cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group