diff --git a/deeplabcut/gui/tabs/create_videos.py b/deeplabcut/gui/tabs/create_videos.py index 638c616d6..b3d49ccd8 100644 --- a/deeplabcut/gui/tabs/create_videos.py +++ b/deeplabcut/gui/tabs/create_videos.py @@ -276,7 +276,7 @@ def create_videos(self): self.root.writer.write("Labeled videos created.") else: failed_videos = [video for success, video in zip(videos_created, videos, strict=False) if not success] - failed_videos_str = ", ".join(failed_videos) + failed_videos_str = ", ".join(str(video) for video in failed_videos) self.root.writer.write(f"Failed to create videos from {failed_videos_str}.") if self.plot_trajectories.isChecked(): diff --git a/deeplabcut/utils/plotting.py b/deeplabcut/utils/plotting.py index 3caaee9c4..d1d817594 100644 --- a/deeplabcut/utils/plotting.py +++ b/deeplabcut/utils/plotting.py @@ -318,7 +318,7 @@ def plot_trajectories( if len(failures) > 0: # Some videos were not evaluated. - failed_videos = ",".join(failures) + failed_videos = ",".join(str(video) for video in failures) if len(multianimal_errors) > 0: verbose_error = ": " + " ".join(multianimal_errors) else: