Unable to run secondary notebook from Azure DevOps repo in Databricks due to 'file not found' error

huangapple go评论76阅读模式
英文:

Unable to run secondary notebook from Azure DevOps repo in Databricks due to 'file not found' error

问题

我已将我的Azure DevOps仓库克隆到Databricks中。我尝试在仓库中的次要笔记本上运行%run命令。当我尝试在次要笔记本上执行%run命令时,我一直收到文件未找到的错误。

我正在主分支上工作,并且所有更改都已提交。是否有人可以建议可能出了什么问题?我是否可能忽略了与Databricks或Azure DevOps中路径格式相关的一些细节?任何见解都将不胜感激。

我一直在使用绝对路径到文件,我是通过直接从相关文件复制而来的,遵循以下格式:

/Repos/[repoName]/[folder1]/[folder2]/[notebookName]

然而,系统返回以下异常:

Exception: File `'/Repos/[repoName]/[folder1]/[folder2]/[notebookName]'` not found.
英文:

I have my Azure DevOps repo cloned into Databricks. I'm trying to run the %run on a secondary notebook in the repo. When I attempt to execute the %run command on the secondary notebook, I consistently receive a file not found error.

I'm working on the main branch of my repository, and all changes have been committed. Could anyone suggest what might be going wrong here? Am I perhaps overlooking some specifics related to path formatting in Databricks or Azure DevOps? Any insights would be greatly appreciated.

I've been using the absolute path to the file, which I obtain by copying directly from the file in question, following this format:

<sub>/Repos/[repoName]/[folder1]/[folder2]/[notebookName]
</sub>

However, the system returns the following exception:

Exception: File `&#39;/Repos/[repoName]/[folder1]/[folder2]/[notebookName]&#39;` not found.

答案1

得分: 0

使用相对路径../[folder2]有效。

英文:

Using relative path ../[folder2] worked.

huangapple
  • 本文由 发表于 2023年7月13日 18:52:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76678556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定