---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-17-94e797df59b4> in <module>
16 tree_name="Scatters",
17 eventtype="mc",
---> 18 no_empty_files=True,
19 #confirm_tree=True
20 )
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/fast_curator/write.py in prepare_file_list(files, dataset, eventtype, tree_name, expand_files, prefix, no_empty_files, confirm_tree, include_branches)
30 no_empty=no_empty_files,
31 list_branches=include_branches,
---> 32 confirm_tree=confirm_tree)
33
34 data = {}
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/fast_curator/catalogues/__init__.py in check_files(*args, **kwargs)
33 @staticmethod
34 def check_files(*args, **kwargs):
---> 35 return check_entries_uproot(*args, **kwargs)
36
37
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/fast_curator/catalogues/__init__.py in check_entries_uproot(files, tree_names, no_empty, confirm_tree, list_branches)
60 missing_trees = defaultdict(list)
61 for tree in tree_names:
---> 62 totals = uproot.numentries(files, tree, total=False)
63 for name, entries in totals.items():
64 n_entries[tree] += entries
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/tree.py in numentries(path, treepath, total, localsource, xrootdsource, httpsource, executor, blocking, **options)
2004 else:
2005 paths = [y for x in path for y in _filename_explode(x)]
-> 2006 return _numentries(paths, treepath, total, localsource, xrootdsource, httpsource, executor, blocking, [None] * len(paths), options)
2007
2008 def _numentries(paths, treepath, total, localsource, xrootdsource, httpsource, executor, blocking, uuids, options):
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/tree.py in _numentries(paths, treepath, total, localsource, xrootdsource, httpsource, executor, blocking, uuids, options)
2044 if executor is None:
2045 for i in range(len(paths)):
-> 2046 _delayedraise(fill(i))
2047 excinfos = ()
2048 else:
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/tree.py in _delayedraise(excinfo)
56 exec("raise cls, err, trc")
57 else:
---> 58 raise err.with_traceback(trc)
59
60 def _filename_explode(x):
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/tree.py in fill(i)
2023 def fill(i):
2024 try:
-> 2025 file = uproot.rootio.open(paths[i], localsource=localsource, xrootdsource=xrootdsource, httpsource=httpsource, read_streamers=False, **options)
2026 except:
2027 return sys.exc_info()
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/rootio.py in open(path, localsource, xrootdsource, httpsource, **options)
51 else:
52 openfcn = localsource
---> 53 return ROOTDirectory.read(openfcn(path), **options)
54
55 elif _bytesid(parsed.scheme) == b"root":
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/rootio.py in <lambda>(path)
48 if n in options:
49 kwargs[n] = options.pop(n)
---> 50 openfcn = lambda path: MemmapSource(path, **kwargs)
51 else:
52 openfcn = localsource
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/uproot/source/memmap.py in __init__(self, path)
19 def __init__(self, path):
20 self.path = os.path.expanduser(path)
---> 21 self._source = numpy.memmap(self.path, dtype=numpy.uint8, mode="r")
22
23 def parent(self):
~/miniconda3/envs/fast_lz/lib/python3.7/site-packages/numpy/core/memmap.py in __new__(subtype, filename, dtype, mode, offset, shape, order)
223 f_ctx = contextlib_nullcontext(filename)
224 else:
--> 225 f_ctx = open(os_fspath(filename), ('r' if mode == 'c' else mode)+'b')
226
227 with f_ctx as fid:
PermissionError: [Errno 13] Permission denied: '/global/projecta/projectdirs/lz/data/MDC3/calibration/LZAP-4.5.1/20180226/lz_201802260003_25_lzap.root'