diff --git a/PyInstaller/hooks/hook-matplotlib.py b/PyInstaller/hooks/hook-matplotlib.py index e13209bcc3..33a292031b 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"), 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.