Matplotlib font manager error
A Python script that used to work on my machine stopped working at some point. It’s the script presented in the post Designing a Butterworth low-pass filter with SciPy. The last few lines of the traceback were:
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1306, in findfont if not os.path.exists(font): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) TypeError: coercing to Unicode: need string or buffer, dict found
Through this thread I was able to resolve the issue by clearing matplotlib’s font cache: rm ~/.matplotlib/fontList.cache
Advertisement