Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"UserWarning: Matplotlib is building the font cache using fc-list." never resolves

Hi,

I just downloaded and installed Sage 9.0 on windows. Typing the following:

plot(x^3, (x,0,5))

Gives the following error:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
   'Matplotlib is building the font cache using fc-list. '

The kernel is running and nothing happens, even after waiting for a long time.

I did some googling. This stackexchange answer suggesting using

import matplotlib as mpl
print mpl.get_cachedir()

To get the directory of matplotlib, in order to (as suggested here) delete these files:

fontList.cache
fontList.py3k.cache 
tex.cache

I did this, the folder I got was: /home/sage/.sage/matplotlib-1.5.1

But this folder is empty (according to the Sage shell). There are no files to delete there.

Any suggestions for how to get plot to work?

Thanks.

"UserWarning: Matplotlib is building the font cache using fc-list." never resolves

Hi,

I just downloaded and installed Sage 9.0 on windows. Typing the following:

plot(x^3, (x,0,5))

Gives the following error:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
   'Matplotlib is building the font cache using fc-list. '

The kernel is running and nothing happens, even after waiting for a long time.

I did some googling. This stackexchange answer suggesting using

import matplotlib as mpl
print mpl.get_cachedir()

To get the directory of matplotlib, in order to (as suggested here) delete these files:

fontList.cache
fontList.py3k.cache 
tex.cache

I did this, the folder I got was: /home/sage/.sage/matplotlib-1.5.1

But this folder is empty (according to the Sage shell). There are no files to delete there.

Any suggestions for how to get plot to work?

Thanks.