While importlib.resources is designed for packages, you can adapt it to work with a py3esourcezip if the zip is on sys.path . However, the safest method is using zipfile directly with a context manager.
The culprit is almost always hardcoded file paths or missing resource folders. py3esourcezip
What do you do?