FileNotFoundError version.txt
Something in 0.6 broke the ability to use shiv
for me:
shiv -e saltdash:config.django_manage -o dist/saltdash-0.9.3+1c7be483d85e9c1dcafbf8014d1d7c1382007f30-py36-linux-x86_64.pyz .
Traceback (most recent call last):
File "/root/.local/lib/python3.6/site-packages/importlib_resources/_py3.py", line 122, in open_text
full_path, mode='r', encoding=encoding, errors=errors)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/lib/python3.6/site-packages/importlib_resources/version.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.local/bin/shiv", line 7, in <module>
from shiv.cli import main
File "/root/.local/lib/python3.6/site-packages/shiv/cli.py", line 1, in <module>
import importlib_resources # type: ignore
File "/root/.local/lib/python3.6/site-packages/importlib_resources/__init__.py", line 21, in <module>
__version__ = read_text('importlib_resources', 'version.txt')
File "/root/.local/lib/python3.6/site-packages/importlib_resources/_py3.py", line 160, in read_text
with open_text(package, resource, encoding, errors) as fp:
File "/root/.local/lib/python3.6/site-packages/importlib_resources/_py3.py", line 136, in open_text
raise FileNotFoundError(message)
FileNotFoundError: 'version.txt' resource not found in 'importlib_resources'
make: *** [dist/saltdash-0.9.3+1c7be483d85e9c1dcafbf8014d1d7c1382007f30-py36-linux-x86_64.pyz] Error 1