You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am adding lots of single files to my local university's data repository using the python-dvuploader. At some point I always run into the above error. I am circumventing this problem by performing my upload in multiple batches and then closing all open files with psutil after each batch. See the attached python script for the workaround.
I don't know where the error is specifically, but I didn't find a related issue (closed or open) so I imagine this kludge might be helpful for someone else.
@JonathanHungerland thanks for bringing this up! I think the issue is Python-related, since there is a limit on how many files can be opened at the same time. A possible solution would be either to batch, as you did, or internally open files only when scheduled for an upload. I will take a deeper look into this and check out how this can be solved.
@JonathanHungerland, I’ve migrated the code base to open files only when required and have opened a draft PR #45. This should resolve the issue since file handlers are only present when needed, given that the File has been initialized using a path.
Would you mind test PR #45 and let me know if everything worked out?
Activity
JonathanHungerland commentedon Sep 16, 2025
Oh and it's probably not good practive to attached executable python code to an issue. So here is the core script:
I believe this issue is likely related to some on the dataverse side:
IQSS/dataverse#6723
IQSS/dataverse#6656
JR-1991 commentedon Sep 18, 2025
@JonathanHungerland thanks for bringing this up! I think the issue is Python-related, since there is a limit on how many files can be opened at the same time. A possible solution would be either to batch, as you did, or internally open files only when scheduled for an upload. I will take a deeper look into this and check out how this can be solved.
JR-1991 commentedon Sep 24, 2025
@JonathanHungerland, I’ve migrated the code base to open files only when required and have opened a draft PR #45. This should resolve the issue since file handlers are only present when needed, given that the
Filehas been initialized using a path.Would you mind test PR #45 and let me know if everything worked out?