CERN Accelerating science

Bug in importlib_resources installation

Hi,

I need the backport package importlib_resources for Python < 3.7 but the installation on /cvmfs/sft.cern.ch/lcg/views/LCG_96python3/x86_64-centos7-gcc8-opt/lib/python3.6/site-packages
seems fishy/problematic as the following shows immediately:

>>> import importlib_resources
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "importlib_resources/__init__.py", line 36, in <module>
    __version__ = read_text('importlib_resources', 'version.txt').strip()
  File "importlib_resources/_py2.py", line 118, in read_text
    with open_text(package, resource, encoding, errors) as fp:
  File "importlib_resources/_py2.py", line 97, in open_text
    raise FileNotFoundError(message)
OSError: 'version.txt' resource not found in 'importlib_resources'

I tried this as I was getting the same issue in SWAN.

Can this please be fixed?

Thanks,
Eduardo

Created JIRA issue SPI-1462. The file version.txt is blacklisted when created a LCG view.