Title: Issue with non-ascii paths in font look up · Issue #3517 · matplotlib/matplotlib · GitHub
Open Graph Title: Issue with non-ascii paths in font look up · Issue #3517 · matplotlib/matplotlib
X Title: Issue with non-ascii paths in font look up · Issue #3517 · matplotlib/matplotlib
Description: I posted in #3487 and following the suggestion of @tacaswell , I create a separate issue, for easier bug tracking: Since upgrading to 1.4.0, I get the same exception. I'm on Mac, Mavericks, latest version. anaconda bundle. I'm not even s...
Open Graph Description: I posted in #3487 and following the suggestion of @tacaswell , I create a separate issue, for easier bug tracking: Since upgrading to 1.4.0, I get the same exception. I'm on Mac, Mavericks, latest ...
X Description: I posted in #3487 and following the suggestion of @tacaswell , I create a separate issue, for easier bug tracking: Since upgrading to 1.4.0, I get the same exception. I'm on Mac, Mavericks, lat...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3517
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with non-ascii paths in font look up","articleBody":"I posted in #3487 and following the suggestion of @tacaswell , I create a separate issue, for easier bug tracking:\n\nSince upgrading to 1.4.0, I get the same exception.\nI'm on Mac, Mavericks, latest version. anaconda bundle.\n\nI'm not even sure it's about matplotlib, but it crashes when it gets to font_manager.\n\nThis is the relevant output for the exception:\n\n``` python\n---\u003e 18 import matplotlib.pyplot as plt\n 19\n 20 from copy import deepcopy\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py in \u003cmodule\u003e()\n 25\n 26 import matplotlib\n---\u003e 27 import matplotlib.colorbar\n 28 from matplotlib import style\n 29 from matplotlib import _pylab_helpers, interactive\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/colorbar.py in \u003cmodule\u003e()\n 32 import matplotlib.artist as martist\n 33 import matplotlib.cbook as cbook\n---\u003e 34 import matplotlib.collections as collections\n 35 import matplotlib.colors as colors\n 36 import matplotlib.contour as contour\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/collections.py in \u003cmodule\u003e()\n 25 import matplotlib.artist as artist\n 26 from matplotlib.artist import allow_rasterization\n---\u003e 27 import matplotlib.backend_bases as backend_bases\n 28 import matplotlib.path as mpath\n 29 from matplotlib import _path\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py in \u003cmodule\u003e()\n 54\n 55 import matplotlib.tight_bbox as tight_bbox\n---\u003e 56 import matplotlib.textpath as textpath\n 57 from matplotlib.path import Path\n 58 from matplotlib.cbook import mplDeprecation\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/textpath.py in \u003cmodule\u003e()\n 17 from matplotlib.path import Path\n 18 from matplotlib import rcParams\n---\u003e 19 import matplotlib.font_manager as font_manager\n 20 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING\n 21 from matplotlib.ft2font import LOAD_TARGET_LIGHT\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in \u003cmodule\u003e()\n 1410 verbose.report(\"Using fontManager instance from %s\" % _fmcache)\n 1411 except:\n-\u003e 1412 _rebuild()\n 1413 else:\n 1414 _rebuild()\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in _rebuild()\n 1395 def _rebuild():\n 1396 global fontManager\n-\u003e 1397 fontManager = FontManager()\n 1398 if _fmcache:\n 1399 pickle_dump(fontManager, _fmcache)\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in __init__(self, size, weight)\n 1035 # Load TrueType fonts and create font dictionary.\n 1036\n-\u003e 1037 self.ttffiles = findSystemFonts(paths) + findSystemFonts()\n 1038 self.defaultFamily = {\n 1039 'ttf': 'Bitstream Vera Sans',\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in findSystemFonts(fontpaths, fontext)\n 320 fontfiles[f] = 1\n 321\n--\u003e 322 for f in get_fontconfig_fonts(fontext):\n 323 fontfiles[f] = 1\n 324\n\n/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in get_fontconfig_fonts(fontext)\n 272 pipe = subprocess.Popen(['fc-list', '--format=%{file}\\\\n'],\n 273 stdout=subprocess.PIPE,\n--\u003e 274 stderr=subprocess.PIPE)\n 275 output = pipe.communicate()[0]\n 276 except (OSError, IOError):\n\n/Users/ifmichael/anaconda/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)\n 708 p2cread, p2cwrite,\n 709 c2pread, c2pwrite,\n--\u003e 710 errread, errwrite)\n 711 except Exception:\n 712 # Preserve original exception in case os.close raises.\n\n/Users/ifmichael/anaconda/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)\n 1325 raise\n 1326 child_exception = pickle.loads(data)\n-\u003e 1327 raise child_exception\n 1328\n 1329\n\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)\n```\n\nRight now I downgraded to 1.3.1, and everything got back to normal.\n","author":{"url":"https://github.com/ifmihai","@type":"Person","name":"ifmihai"},"datePublished":"2014-09-14T22:00:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":38},"url":"https://github.com/3517/matplotlib/issues/3517"}
| 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:bced9098-a062-4fb1-f632-48464390257b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDBA:FB8AB:B5EED5:F7A963:6A5162D3 |
| html-safe-nonce | 3597127e22daee262121fe0c3e913ead11b87f7ab77a0c4877399e730c2e6e85 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREJBOkZCOEFCOkI1RUVENTpGN0E5NjM6NkE1MTYyRDMiLCJ2aXNpdG9yX2lkIjoiMjc5NTUwNTgyMDAyODE5OTYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30a41d4384f2f98c6515db1912336f2fe971c5da2fe46f6a1297ae6b4fc75baf |
| hovercard-subject-tag | issue:42731654 |
| 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/3517/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ce6161046b5d66494e0d23c0149cfc7ef51eacf87d70bf5132258be54f4adcf/matplotlib/matplotlib/issues/3517 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ce6161046b5d66494e0d23c0149cfc7ef51eacf87d70bf5132258be54f4adcf/matplotlib/matplotlib/issues/3517 |
| og:image:alt | I posted in #3487 and following the suggestion of @tacaswell , I create a separate issue, for easier bug tracking: Since upgrading to 1.4.0, I get the same exception. I'm on Mac, Mavericks, latest ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ifmihai |
| 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 | 2eeb434949a926fad21064b4d395a54759f7a0b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width