-
Hi, I'm doing a test run on dummy data via anaconda. The action 07b_an_multivariable_cox_models_FULL_non_covid_death produces a file not found error, though this do file is running fine on STATA locally. Output on anaconda is: File "c:\users\qc18278\anaconda3\lib\site-packages\opensafely_vendor\jobrunner\manage_jobs.py", line 258, in finalise_job |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
My guess is that this is because your path:
is more than 260 characters long and that's a Windows limit:
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation In this case, it's only just over the limit by a character(!). If you shorten the directory name that holds the repository to e.g. Alternatively, if you are an administrator and on non-Home edition Windows with access to the Group Policy editor ( That Microsoft link also has registry edits that a Home edition Windows user could configure, if, again your user account is a computer administrator and you are brave enough to do so. (Windows Home users don't have access to the Group Policy editor without hacky and unapproved workarounds.) |
Beta Was this translation helpful? Give feedback.
-
Ah, I know exactly what's happening here. A fun "feature" of Windows is that without some trickery it can't handle file paths that are more than 260 characters long. And The very quickest thing you could do for now is to rename the We can also work on making the filenames we generate internally shorter. They make sense in production where lots of different projects are running, but there's no need for them to be quite then long when running locally. |
Beta Was this translation helpful? Give feedback.
-
fixed! thank you |
Beta Was this translation helpful? Give feedback.
Ah, I know exactly what's happening here. A fun "feature" of Windows is that without some trickery it can't handle file paths that are more than 260 characters long. And
C:\Users\qc18278\OneDrive - University of Bristol\ ... \metadata.json
is 261 characters long!The very quickest thing you could do for now is to rename the
school-age-children-and-covid2-opensafely
folder to something slightly shorter. (Git doesn't care whether it actually matches the repository name or not.)We can also work on making the filenames we generate internally shorter. They make sense in production where lots of different projects are running, but there's no need for them to be quite then long when running loc…