From d20a75d7a489e46e1d36fc956c79693e4d4280ca Mon Sep 17 00:00:00 2001 From: richardsheridan Date: Fri, 19 Feb 2021 06:57:50 -0500 Subject: [PATCH 1/2] Hooks: Use public get_data_path in matplotlib hook. Private _get_data_path was removed in matplotlib-3.4.0rc1. This change simply removes the underscore to use the public version. (#5567) --- PyInstaller/hooks/hook-matplotlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyInstaller/hooks/hook-matplotlib.py b/PyInstaller/hooks/hook-matplotlib.py index baf3a5146e..9e4f92ba9c 100644 --- a/PyInstaller/hooks/hook-matplotlib.py +++ b/PyInstaller/hooks/hook-matplotlib.py @@ -13,7 +13,7 @@ from PyInstaller.utils.hooks import exec_statement mpl_data_dir = exec_statement( - "import matplotlib; print(matplotlib._get_data_path())") + "import matplotlib; print(matplotlib.get_data_path())") datas = [ (mpl_data_dir, "matplotlib/mpl-data"), From 4d9b2bc34b1cd4c9076a593c31b512097c9af7da Mon Sep 17 00:00:00 2001 From: richardsheridan Date: Fri, 19 Feb 2021 13:05:51 -0500 Subject: [PATCH 2/2] Doc: add newsfragment --- news/5568.bugfix.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 news/5568.bugfix.rst diff --git a/news/5568.bugfix.rst b/news/5568.bugfix.rst new file mode 100644 index 0000000000..e18a44e3fd --- /dev/null +++ b/news/5568.bugfix.rst @@ -0,0 +1,3 @@ +Remove dependence on a `private function +`_ +removed in ``matplotlib`` 3.4.0rc1.