Your package installs fine, but at runtime `FileNotFoundError: .../site-packages/cloudaudit/templates/report.html`.
IntermediateTroubleshootingEnvironments, imports & packaging errors
Answer
Likely causes → Non-Python files are not included in the wheel; it works in editable/dev mode because files are read from the source tree.
Diagnose →
python -m build && unzip -l dist/*.whl | grep templates
Fix → Include package data ([tool.setuptools.package-data] cloudaudit = ["templates/*.html"], or include-package-data = true with MANIFEST.in), and read files with importlib.resources.files("cloudaudit") / "templates/report.html" instead of paths relative to __file__.
Prevent → Test the built wheel in CI (src layout plus installing the wheel, not -e).
More on Environments, imports & packaging errors
`ModuleNotFoundError: No module named 'boto3'` right after you ran `pip install boto3`.Beginner`error: externally-managed-environment` when running `pip install requests` on Ubuntu 24.04.Beginner`ImportError: attempted relative import with no known parent package` when running `python cloudaudit/cli.py`.Intermediate`AttributeError: partially initialized module 'yaml' has no attribute 'safe_load' (most likely due to a circular import)`Beginner`ERROR: Could not find a version that satisfies the requirement boto3==1.40.99 (from versions: ...)`Beginner`ERROR: ResolutionImpossible: ... The conflict is caused by: botocore 1.35.x depends on urllib3<1.27 ... requests 2.x depends on urllib3>=2`Advanced