Can't import uproot in Bleeding Edge

Hello,

I’m getting the following error with the Bleeding Edge Cuda 11 software stack when I attempt to import uproot. It cannot access the files for the QKeras package.


PermissionError Traceback (most recent call last)
/tmp/ipykernel_380/3204872210.py in
----> 1 import uproot

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/uproot/init.py in
76 from uproot.version import version
77 import uproot.const
—> 78 import uproot.extras
79 import uproot.dynamic
80

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/uproot/extras.py in
14 from distutils.version import LooseVersion
15
—> 16 import pkg_resources
17
18

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in
3241
3242 @_call_aside
→ 3243 def _initialize_master_working_set():
3244 “”"
3245 Prepare the master working set and make the require()

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _call_aside(f, *args, **kwargs)
3224 # from jaraco.functools 1.3
3225 def _call_aside(f, *args, **kwargs):
→ 3226 f(*args, **kwargs)
3227 return f
3228

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _initialize_master_working_set()
3253 at their own risk.
3254 “”"
→ 3255 working_set = WorkingSet._build_master()
3256 _declare_state(‘object’, working_set=working_set)
3257

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _build_master(cls)
557 Prepare the master working set.
558 “”"
→ 559 ws = cls()
560 try:
561 from main import requires

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in init(self, entries)
550
551 for entry in entries:
→ 552 self.add_entry(entry)
553
554 @classmethod

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in add_entry(self, entry)
606 self.entry_keys.setdefault(entry, [])
607 self.entries.append(entry)
→ 608 for dist in find_distributions(entry, True):
609 self.add(dist, entry, False)
610

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in find_on_path(importer, path_item, only)
2061 fullpath = os.path.join(path_item, entry)
2062 factory = dist_factory(path_item, entry, only)
→ 2063 for dist in factory(fullpath):
2064 yield dist
2065

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in distributions_from_metadata(path)
2126 metadata = FileMetadata(path)
2127 entry = os.path.basename(path)
→ 2128 yield Distribution.from_location(
2129 root, entry, metadata, precedence=DEVELOP_DIST,
2130 )

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in from_location(cls, location, basename, metadata, **kw)
2586 ‘name’, ‘ver’, ‘pyver’, ‘plat’
2587 )
→ 2588 return cls(
2589 location, metadata, project_name=project_name, version=version,
2590 py_version=py_version, platform=platform, **kw

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _reload_version(self)
2987 the metadata file itself instead of the filename.
2988 “”"
→ 2989 md_version = self._get_version()
2990 if md_version:
2991 self._version = md_version

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _get_version(self)
2768 def _get_version(self):
2769 lines = self._get_metadata(self.PKG_INFO)
→ 2770 version = _version_from_file(lines)
2771
2772 return version

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _version_from_file(lines)
2552 return line.lower().startswith(‘version:’)
2553 version_lines = filter(is_version_line, lines)
→ 2554 line = next(iter(version_lines), ‘’)
2555 _, _, value = line.partition(‘:’)
2556 return safe_version(value.strip()) or None

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _get_metadata(self, name)
2763 def _get_metadata(self, name):
2764 if self.has_metadata(name):
→ 2765 for line in self.get_metadata_lines(name):
2766 yield line
2767

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in get_metadata_lines(self, name)
1415
1416 def get_metadata_lines(self, name):
→ 1417 return yield_lines(self.get_metadata(name))
1418
1419 def resource_isdir(self, resource_name):

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in get_metadata(self, name)
1405 return “”
1406 path = self._get_metadata_path(name)
→ 1407 value = self._get(path)
1408 try:
1409 return value.decode(‘utf-8’)

/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/pkg_resources/init.py in _get(self, path)
1609
1610 def _get(self, path):
→ 1611 with open(path, ‘rb’) as stream:
1612 return stream.read()
1613

PermissionError: [Errno 13] Permission denied: ‘/cvmfs/sft-nightlies.cern.ch/lcg/views/dev4cuda/Thu/x86_64-centos7-gcc8-opt/lib/python3.9/site-packages/QKeras-0.9.0-py3.9.egg-info/PKG-INFO’

Hi,

I reported this issue to the LCG librarians (the team responsible for packaging software in cvmfs) https://sft.its.cern.ch/jira/projects/SPI/issues/SPI-2188?filter=allissues

It looks like the issue is fixed in today’s bleeding edge.
BTW, we will update software stack next week (Outage - CERN Service Portal: easy access to services at CERN) to LCG102, which should contain packages versions useful for your work

Great, thanks for the help!