-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Import hangs when importing pyplot #2919
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
Comments
10 to 15 minutes?! The most I have ever seen was 2 minutes. Maybe we need to do something to On Tue, Mar 25, 2014 at 12:06 PM, chestervonwinchester <
|
How many fonts to you have installed on your system? Are any on slow media, such as network drives? 10-15 minutes seems way out of line. |
Ok I apologize. My impatience is warping my perception of time because:
In any case, I think you're right about an output message because this could've been resolved by simply letting the thing run. Instead, I assumed there was an error, and continued aborting and hunting tracebacks. Perhaps if there was a check to see if the matplotlib fontCache exists and if not, prompt a message. I have ~2461 fonts and no slow media. |
Why is this closed? Even if the solution is as simple as running |
Because that is not the solution. What happens is that matplotlib calls fc-list on the first import of pyplot to create the font cache. Unfortunately this can be really slow on some systems but it's not really an issue in matplotlib. No where in this issue is there any indication of anything hanging forever. It will hang for the time it takes to execute fc-list only. |
Sorry, I meant forever in the colloquial sense. Most users have been trained by convention to expect that any program that produces no visual output for more than several seconds without warning has crashed - I know I have. Could we at least print a line saying something like "Running fc-list. This may take up to several minutes." ? |
I'm also suffering from a slow fc-list import. A warning in the console would be appreciated. The only reason I spotted that the kernel wasn't hung was due to htop. |
@RichardoC there already is a warning at import time in 1.5.1 see #5640 also see #5836 for users whishing to remove it again. Are you using an older version of matplotlib? |
Just updated and the warning is now showing up. It's a nice feature to have. |
for cases when matplotlib.pyplot takes long to load. For more information, see matplotlib/matplotlib#2919
This is another font issue. This is similar to this one, although the solution found there doesn't work for me. I am on OSX 10.6 using python 2.7.6. I installed the latest via git. That went fine. I can import matplotlib:
Now if I do:
I get nothing. It just hangs. This is the traceback which is what leads me to believe that this a font manager issue: https://gist.github.com/chestervonwinchester/9725539
The text was updated successfully, but these errors were encountered: