Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

font_manager unittest errors #1793

Closed
toddrjen opened this Issue · 2 comments

2 participants

@toddrjen

When running unittests on my local git branch from master, I am getting the following errors during the unittest run:

/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1224: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans  (prop.get_family(), self.defaultFamily[fontext]))
/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1234: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=14.0. Returning /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf  UserWarning)/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1234: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=bold:stretch=500:size=14.0. Returning /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf  UserWarning)
/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1224: UserWarning: findfont: Font family ['sans serif'] not found. Falling back to Bitstream Vera Sans  (prop.get_family(), self.defaultFamily[fontext]))
/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1234: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=italic:variant=normal:weight=750:stretch=500:size=14.0. Returning /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf  UserWarning)
/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1234: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=200:stretch=500:size=14.0. Returning /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf  UserWarning)
/home/User/.local/lib/python2.7/site-packages/matplotlib/font_manager.py:1234: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=500:stretch=100:size=14.0. Returning /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf  UserWarning)

It seems that the Bitstream Vera fonts are present in:

/home/User/.local/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/

So I don't know why they aren't being found

@mdboom mdboom was assigned
@mdboom
Owner

Have you tried removing ~/.matplotlib/fontList.cache?

@toddrjen

Thanks, that fixes it. Sorry for the noise.

@toddrjen toddrjen closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.