Title: Error loading fonts on OSX 10.11 · Issue #5386 · matplotlib/matplotlib · GitHub
Open Graph Title: Error loading fonts on OSX 10.11 · Issue #5386 · matplotlib/matplotlib
X Title: Error loading fonts on OSX 10.11 · Issue #5386 · matplotlib/matplotlib
Description: A colleague ran into the following error after installing a fresh copy of Matplotlib on OSX 10.11: $ python -c 'import matplotlib.pyplot' Traceback (most recent call last): File "
Open Graph Description: A colleague ran into the following error after installing a fresh copy of Matplotlib on OSX 10.11: $ python -c 'import matplotlib.pyplot' Traceback (most recent call last): File "
X Description: A colleague ran into the following error after installing a fresh copy of Matplotlib on OSX 10.11: $ python -c 'import matplotlib.pyplot' Traceback (most recent call last): File "<s...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5386
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error loading fonts on OSX 10.11","articleBody":"A colleague ran into the following error after installing a fresh copy of Matplotlib on OSX 10.11:\n\n```\n$ python -c 'import matplotlib.pyplot'\nTraceback (most recent call last):\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py\", line 29, in \u003cmodule\u003e\n import matplotlib.colorbar\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py\", line 34, in \u003cmodule\u003e\n import matplotlib.collections as collections\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py\", line 27, in \u003cmodule\u003e\n import matplotlib.backend_bases as backend_bases\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py\", line 62, in \u003cmodule\u003e\n import matplotlib.textpath as textpath\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py\", line 15, in \u003cmodule\u003e\n import matplotlib.font_manager as font_manager\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 1420, in \u003cmodule\u003e\n _rebuild()\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 1405, in _rebuild\n fontManager = FontManager()\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 1043, in __init__\n self.ttffiles = findSystemFonts(paths) + findSystemFonts()\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 323, in findSystemFonts\n for f in get_fontconfig_fonts(fontext):\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 275, in get_fontconfig_fonts\n stderr=subprocess.PIPE)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 710, in __init__\n errread, errwrite)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 1334, in _execute_child\n child_exception = pickle.loads(data)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 1382, in loads\n return Unpickler(file).load()\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 858, in load\n dispatch[key](self)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 966, in load_string\n raise ValueError, \"insecure string pickle\"\nValueError: insecure string pickle\n```\n\nNot surprisingly, the problem turns out to be in `get_fontconfig_fonts` where the command `subprocess.Popen(['fc-list', '--format=%{file}\\\\n'], ...)` returns a `ValueError` instead of the expected `OSError, IOError` and so the routine tries to load a pickle from the error message text and fails. `fc-list` does not exist on my colleague's system.\n","author":{"url":"https://github.com/matthew-brett","@type":"Person","name":"matthew-brett"},"datePublished":"2015-11-03T01:28:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/5386/matplotlib/issues/5386"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b58626d7-9376-e70c-8226-b06fb4314be9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E44:166AAB:1FECD8F:2B76CBA:6A5384E8 |
| html-safe-nonce | bb3098957d705d586110e74f47947f1aab6b8426fb5f5b65ac8ce68a423b0728 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTQ0OjE2NkFBQjoxRkVDRDhGOjJCNzZDQkE6NkE1Mzg0RTgiLCJ2aXNpdG9yX2lkIjoiNTc5MDgzMzIwMDcxNzg1ODAyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2aa0d1d90d8da5878edc830d7b7994160753294350c43427d26ecc98260cba40 |
| hovercard-subject-tag | issue:114723194 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/5386/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56346b2a2c99e286249d3c9607deaaabdbf3a14645e3b6091806445b25ce420a/matplotlib/matplotlib/issues/5386 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56346b2a2c99e286249d3c9607deaaabdbf3a14645e3b6091806445b25ce420a/matplotlib/matplotlib/issues/5386 |
| og:image:alt | A colleague ran into the following error after installing a fresh copy of Matplotlib on OSX 10.11: $ python -c 'import matplotlib.pyplot' Traceback (most recent call last): File " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthew-brett |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width