You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing dist: package in appmap.yml raises PackageNotFoundError and stops the test run #387
If appmap.yml lists a dist: package that is not installed in the environment, the
agent raises importlib.metadata.PackageNotFoundError while loading the config. The
test run stops before any test executes and no recordings are written.
The tests run and demo is recorded. The missing distribution is reported, and the run
carries on without that entry.
Actual
File ".../site-packages/_appmap/importer.py", line 198, in do_import
File ".../site-packages/_appmap/configuration.py", line 481, in __init__
File ".../site-packages/_appmap/configuration.py", line 464, in matcher_of_config
File ".../site-packages/_appmap/configuration.py", line 398, in __init__
...
importlib.metadata.PackageNotFoundError: No package metadata was found for requests
No test runs and tmp/appmap/pytest does not exist. DistMatcher.__init__ calls importlib.metadata.files(dist), which raises for a distribution that is not
installed.
This happens easily when one appmap.yml is shared between environments that install
different optional dependencies.
Hi! I'd like to work on this issue. I can reproduce the PackageNotFoundError when a configured distribution is missing. I'd like to fix the handling of missing distributions and add regression tests. Is this issue available for me to work on?
Activity
gnarendra9014-user commentedon Nov 12, 2026
Hi! I'd like to work on this issue. I can reproduce the
PackageNotFoundErrorwhen a configured distribution is missing. I'd like to fix the handling of missing distributions and add regression tests. Is this issue available for me to work on?