From 3fcb40e1e1dff033fe1c91e1716fe69a6222c9a7 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 28 Mar 2019 23:48:53 +0100 Subject: [PATCH] Fix failure to import matplotlib.animation on Windows. Path objects can't be passed to subprocess.Popen on Windows. --- lib/matplotlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 80588e97a0c6..2d2345cdfc0e 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -363,7 +363,7 @@ def impl(args, regex, min_ver=None): for name in ["convert.exe", "magick.exe"]: candidate = Path(binpath, name) if candidate.exists(): - path = candidate + path = str(candidate) break else: path = "convert"