Wrong Path Databricks Repos
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 12:47 PM
In a Databricks environment, I have cloned a repository that I have in Azure DevOps Repos, the repository is inside the path:
Workspace/Repos/<user_mail>/my_repo.
Then when I create a Python script that I want to call in a notebook using an import: import myscript it tells me that it does not exist and this is because the path that launches the notebook is the following:
databricks/driver/
However, in another Databricks environment, I did the same exercise and it worked. Even the path I get is this: Workspace/Repos/<user_mail>/my_repo when executing !pwd.
Where can I adjust so that it is not the path databricks driver?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 09:44 PM
Hi @Ramseths ,
If your notebook and script are in the same path, it would have picked the same relative path.
Is your notebook located in /databricks/driver?
Thanks!

