Open marinang opened 4 years ago
We may need to document this better, but uproot can't write remote files. Writing a ROOT file involves a lot of backtracking—we made strong assumptions about having a local file handle. It wouldn't be impossible to handle remote writing, although it might be difficult to do it efficiently.
To not get your hopes up, I'll say that we don't plan on adding this feature—it's beyond the scope we had been considering. (Although @reikdas, if you think it's not too hard, let me know.) I'm going to keep this open for better documentation: we should state clearly that uproot can only write to local files, in the README, the docstrings, and in the error message you get if you try it.
Ok that explains why. It's not a big deal I can write it locally and send it to cernbox with xrootd commands. Thanks.
I plan to take a closer look at this. Reopening the issue as a reminder.
I am unable to write a tfile using Xrootd on cernbox/eos for instance, it says
FileNotFoundError
. I attached an example of an existing file that I tried to overwrite.