importlib.metadata is not always available with Python 3.7, which may prevent launching the agent.
importlib.metadata
A way to launch the agent in this case.