Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Python 3 and matplotlib 1.2 issue on Linux #1873

amitsaha opened this Issue · 2 comments

3 participants


When I attempt to run the histogram demo using Python 3 + matplotlib 1.2, I get this traceback:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python3.3/tkinter/", line 1442, in __call__
    return self.func(*args)
  File "/usr/lib64/python3.3/site-packages/matplotlib/backends/", line 276, in resize
  File "/usr/lib64/python3.3/site-packages/matplotlib/backends/", line 348, in draw
  File "/usr/lib64/python3.3/site-packages/matplotlib/backends/", line 439, in draw
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 1000, in draw
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 2088, in draw
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 1051, in draw
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 1000, in _get_tick_bboxes
    extent = tick.label1.get_window_extent(renderer)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 753, in get_window_extent
    bbox, info = self._get_layout(self._renderer)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 305, in _get_layout
  File "/usr/lib64/python3.3/site-packages/matplotlib/backends/", line 208, in get_text_width_height_descent
    font = self._get_agg_font(prop)
  File "/usr/lib64/python3.3/site-packages/matplotlib/backends/", line 246, in _get_agg_font
    fname = findfont(prop)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 1300, in findfont
    result = fc_match(prop, fontext)
  File "/usr/lib64/python3.3/site-packages/matplotlib/", line 1284, in fc_match
    for match in _fc_match_regex.finditer(output):
TypeError: can't use a string pattern on a bytes-like object

Upon setting USE_FONTCONFIG = False in, it worked. Not sure which one is the issue here.


This will be fixed, once issue #1879 is solved.


It looks like #1879 and #1921 were resolved. This should be resolved now, so I'll close it.

@amitsaha If I am mistaken and this is still a problem for you, please feel free to reopen this issue.

@dmcdougall dmcdougall 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.