• Register
0 votes
772 views

Problem :

I have just upgraded to a latest stable release of matplotlib (1.5.1) and everytime I import the matplotlib I get below message:

/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')

It always stalls for the few seconds.

Is this a expected behavior? Was it a same also before, but just without a printed message?

3.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Please delete your below files:

fontList.cache
fontList.py3k.cache 
tex.cache 

From below locations

`~/.matplotlib`

~/.cache/fontconfig

It worked for me.

OR

Below approach works for the Ubuntu 14.04 LTS/matplotlib 1.5.1:

· Deleted the ~/.cache/matplotlib/fontList.cache

· Ran my code then again the warning was issued (assumption: is rebuilding the cache correctly)

· Ran my code again, no more warning (finally)

OR

On the OSX Yosemite (version 10.10.15), the below approach worked for me:

· Remove your cache files from following directory as well: ~/.cache/fontconfig (as per suggestion)
rm -rvf ~/.cache/fontconfig/*

· Also removed .cache files from ~/.matplotlib (as per suggestion)
rm -rvf ~/.matplotlib/*

OR

I ran my python code using sudo just once, and it resolved a warning for me. Now it runs faster for me. Running without the sudo gives no warning at all.

38.6k points

Related questions

0 votes
1 answer 14 views
14 views
Problem : Matplotlib is building the font cache using fc-list, this may take a moment.
asked Jul 4 Isac Christiaan 103k points
0 votes
1 answer 21 views
21 views
Problem: Need help with this : Userwarning: matplotlib is building the font cache using fc-list. this may take a moment.
asked Jun 12 Aurelia Maja 78.4k points
0 votes
1 answer 6 views
6 views
Problem: Matplotlib is building the font cache using fc-list?
asked Jun 27 Nahil 128k points
0 votes
1 answer 12 views
12 views
Problem: Matplotlib is building the font cache using fc-list.
asked Jun 27 asha 121k points
0 votes
1 answer 20 views
20 views
Problem: Matplotlib is currently using a non-gui backend?
asked Jul 3 Nahil 128k points
0 votes
1 answer 12 views
12 views
Problem: "matplotlib is currently using a non-gui backend, "?
asked Jun 28 asha 121k points
0 votes
1 answer 192 views
192 views
Problem: I am trying to plot a simple graph using pyplot, e.g.: import matplotlib.pyplot as plt plt.plot([1,2,3],[5,7,4]) plt.show() but the figure does not appear and I get the following message: UserWarning: Matplotlib is currently using agg, which is a non- ... my operating system is Linux/Ubuntu 18.04. I would like to know how I can solve this problem in order to be able to display the graph.
asked Apr 25 muktaa 34.6k points
0 votes
1 answer 28 views
28 views
Problem: Where should I look for a solution? >Matplotlib 1.3.1 requires nose, which is not installed.
asked May 11 Rada Gracelynn 104k points
0 votes
1 answer 11 views
11 views
Problem: What am I supposed to do here? >Matplotlib 1.3.1 requires tornado, which is not installed.
asked May 9 Florina Gulnar 106k points
0 votes
1 answer 60 views
60 views
Problem: I want to understand examples are included in the examples directory of the basemap source distribution. There are a number of Basemap instance methods for plotting data: I Want to understand these methods plotting in detail. contour(): draw contour lines. contourf(): ... for regular meshes). plot(): draw lines and/or markers. scatter(): draw points with markers. quiver(): draw vector
asked Jan 26 Mashhoodch 13k points