{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5232","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5232/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5232/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5232/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5232","id":111061472,"number":5232,"title":"RuntimeError: No SFNT name table","user":{"login":"aamirza93","id":1103375,"avatar_url":"https://avatars.githubusercontent.com/u/1103375?v=3","gravatar_id":"","url":"https://api.github.com/users/aamirza93","html_url":"https://github.com/aamirza93","followers_url":"https://api.github.com/users/aamirza93/followers","following_url":"https://api.github.com/users/aamirza93/following{/other_user}","gists_url":"https://api.github.com/users/aamirza93/gists{/gist_id}","starred_url":"https://api.github.com/users/aamirza93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamirza93/subscriptions","organizations_url":"https://api.github.com/users/aamirza93/orgs","repos_url":"https://api.github.com/users/aamirza93/repos","events_url":"https://api.github.com/users/aamirza93/events{/privacy}","received_events_url":"https://api.github.com/users/aamirza93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T21:41:37Z","updated_at":"2015-10-12T22:49:49Z","closed_at":null,"body":"Hi, I'm on Ubuntu 14.04 LTS using Python 3.4 and matplotlib 1.4.3.\r\n\r\nI'm new to all this , and I tried to make the simple lot in the tutorial (http://matplotlib.org/users/pyplot_tutorial.html), but I got these two errors:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 1407, in <module>\r\n    fontManager = pickle_load(_fmcache)\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 960, in pickle_load\r\n    with open(filename, 'rb') as fh:\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/aamir/.cache/matplotlib/fontList.py3k.cache'\r\n\r\n\r\n\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"testplots.py\", line 1, in <module>\r\n    import matplotlib.pyplot as plt\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/pyplot.py\", line 27, in <module>\r\n    import matplotlib.colorbar\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/colorbar.py\", line 34, in <module>\r\n    import matplotlib.collections as collections\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/collections.py\", line 27, in <module>\r\n    import matplotlib.backend_bases as backend_bases\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/backend_bases.py\", line 56, in <module>\r\n    import matplotlib.textpath as textpath\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/textpath.py\", line 19, in <module>\r\n    import matplotlib.font_manager as font_manager\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 1415, in <module>\r\n    _rebuild()\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 1400, in _rebuild\r\n    fontManager = FontManager()\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 1055, in __init__\r\n    self.ttflist = createFontList(self.ttffiles)\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 589, in createFontList\r\n    prop = ttfFontProperty(font)\r\n  File \"/usr/local/lib/python3.4/dist-packages/matplotlib/font_manager.py\", line 395, in ttfFontProperty\r\n    sfnt = font.get_sfnt()\r\nRuntimeError: No SFNT name table\r\n```\r\n-----\r\nIf I use Python2, I can get rid of the first FileNotFoundError, but I'd strongly prefer to use Python 3. Anyway, I have no idea what these errors mean. A bit of searching around lead to me believe I might have some incompatible fonts, but removing all the fonts from my ~/.fonts folder (which is where I installed all my custom fonts) didn't solve the issue. \r\n\r\nAnyone have any idea on what's going on?"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/147542795","html_url":"https://github.com/matplotlib/matplotlib/issues/5232#issuecomment-147542795","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5232","id":147542795,"user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T22:49:48Z","updated_at":"2015-10-12T22:49:48Z","body":"matplotlib has found some non-standard-compliant font on your system.  The bug on our end is that we probably need to be robust against this and just move on to the next font.\r\n\r\nIn the meantime, if you want to see the offending font, you can turn on the Python debugger and print out the value of `font.fname` where it fails here.  Then move or remove the font file."}}