英文:
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 `'/Repos/[repoName]/[folder1]/[folder2]/[notebookName]'` not found.
答案1
得分: 0
使用相对路径../[folder2]
有效。
英文:
Using relative path ../[folder2]
worked.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论