We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a6f80 commit 013df33Copy full SHA for 013df33
ml-agents/mlagents/plugins/stats_writer.py
@@ -43,6 +43,14 @@ def register_stats_writer_plugins(run_options: RunOptions) -> List[StatsWriter]:
43
and evaluates them, and returns the list of all the StatsWriter implementations.
44
"""
45
all_stats_writers: List[StatsWriter] = []
46
+ if ML_AGENTS_STATS_WRITER not in importlib_metadata.entry_points():
47
+ logger.warning(
48
+ f"Unable to find any entry points for {ML_AGENTS_STATS_WRITER}, even the default ones. "
49
+ "Uninstalling and reinstalling ml-agents via pip should resolve. "
50
+ "Using default plugins for now."
51
+ )
52
+ return get_default_stats_writers(run_options)
53
+
54
entry_points = importlib_metadata.entry_points()[ML_AGENTS_STATS_WRITER]
55
56
for entry_point in entry_points:
0 commit comments