-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: matplotlib is required for plotting when the default backend "matplotlib" is selected #5994
Comments
This seems to be just what the error is saying - Can you check if |
Downgrading to pandas 1.2.4 resolved the issue.
…On Sun, 11 Jul 2021 at 08:53, Rok Mandeljc ***@***.***> wrote:
This seems to be just what the error is saying - matplotlib is not
present in the frozen application.
Can you check if build\<name>\Analysis-00.toc lists any matplotlib
modules?
If not, check if the build log contains any matplotlib related messages
(e.g., Loading module hook 'hook-matplotlib.py' from ...).
If not, check if the environment from which you are running pyinstaller
(which may or may not be the same as the one you use when you run source
version of your code) has matplotlib installed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5994 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJSW7SKKBHRGJQTD4RAH3TTXFEYHANCNFSM5AEVRWLQ>
.
|
For others having the same issue and don't want to downgrade anything, you can add If you're trying to use import matplotlib
import matplotlib.backends.backend_tkagg
matplotlib.use('tkagg') |
Reproduces the error from pyinstaller#5994, which is caused by pandas using importlib.import_module() to load their pandas.plotting._matplotlib module (starting with pandas 1.3.0).
* tests: add a basic test for pandas.plotting Reproduces the error from #5994, which is caused by pandas using importlib.import_module() to load their pandas.plotting._matplotlib module (starting with pandas 1.3.0). * hooks: add hook for pandas.plotting Ensure that pandas.plotting._matplotlib is collected on pandas 1.3.0 and later (when matplotlib is also available).
* tests: add a basic test for pandas.plotting Reproduces the error from #5994, which is caused by pandas using importlib.import_module() to load their pandas.plotting._matplotlib module (starting with pandas 1.3.0). * hooks: add hook for pandas.plotting Ensure that pandas.plotting._matplotlib is collected on pandas 1.3.0 and later (when matplotlib is also available).
I recently started to get this error with the latest pyinstaller from github (and also prod versions installed via pip):
It only happens when I run the pyinstalled packaged version of my code. Any suggestions how this could be resolved? thanks
The text was updated successfully, but these errors were encountered: