โ04-26-2023 02:25 PM
I'm getting cannot read python file on running this job which is configured to run a python script from git repo.
Run result unavailable: run failed with error message
Cannot read the python file /Repos/.internal/7c39d645692_commits/ff669d089cd8f93e98ccb96c513d5e675c2423f1/<Relative file path in git>
Please check driver logs for more details.
My question is why is it looking for the file internally (/Repos/.internal/) ?
โ04-26-2023 09:57 PM
@Divya Bhadauriaโ :
The error message suggests that Databricks is trying to read the Python file from a path that starts with /Repos/.internal/. This indicates that the Databricks job is not able to download the Python file from the git repo specified in the job configuration.
To troubleshoot this issue, you can try the following steps:
Once you have identified the issue, you can update the job configuration or make changes to the Databricks environment to resolve the issue.
โ04-30-2023 10:59 PM
Hi @Divya Bhadauriaโ
Hope everything is going great.
Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.
Cheers!
โ05-01-2023 10:24 AM
Hi Vidula,
Yes, the above solution worked out for me. Tried debugging using all of the above steps and it turned out the path I was using in the job config was incorrect.
โ05-15-2025 08:11 PM - edited โ05-15-2025 08:13 PM
Hi @Divya_Bhadauria, I'm facing the same internal commit issue from my end. I don't gave any internal path in the databricks workflow. I gave the source to azure DevOps services with branch name. But when I ran the workflow it gives the below error and the driver log doesn't show any error. Not sure from where it takes the path. Also, I don't have made any Repos config in Databricks. Any idea on this?
Cannot read the python file /Repos/.internal/277bc54e62_commits/c422b52459f3ca31841c384b04b0635ceb9567d7/file_name.py. Please check driver logs for more details.
โ05-19-2025 10:19 AM
Hi @SakthiGanesh , For some weird reason Git repo option didnโt work for me the job so I changed the source to python wheel and it resolved the issue.
โ05-27-2025 03:41 AM - edited โ05-27-2025 03:43 AM
Thanks @Divya_Bhadauria . For me the issue is with the extension of the notebook and it is solved now.
I gave the source as Repos, type as python script. In repos all python files are shows with ".py" extension. So I thought it refers the correct path. But when I cloned the Repos to my workspace it referred the file as Notebook and the extension ".py" was not available. This is what the issue from my end. So, I modified the name with .py and then it shows the script as file instead of notebook. This solves the issue.
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now