File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ml-agents/mlagents/plugins Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ def register_stats_writer_plugins(run_options: RunOptions) -> List[StatsWriter]:
43
43
and evaluates them, and returns the list of all the StatsWriter implementations.
44
44
"""
45
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
+
46
54
entry_points = importlib_metadata .entry_points ()[ML_AGENTS_STATS_WRITER ]
47
55
48
56
for entry_point in entry_points :
You can’t perform that action at this time.
0 commit comments