Title: On Windows, matplotlib fails to load fonts when installed to a folder with non-ascii path · Issue #3148 · matplotlib/matplotlib · GitHub
Open Graph Title: On Windows, matplotlib fails to load fonts when installed to a folder with non-ascii path · Issue #3148 · matplotlib/matplotlib
X Title: On Windows, matplotlib fails to load fonts when installed to a folder with non-ascii path · Issue #3148 · matplotlib/matplotlib
Description: After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running python -c "from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()" fails with a long traceback that ends with File "C:/non/ascii/path/to/ma...
Open Graph Description: After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running python -c "from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()" fails with a long traceback that...
X Description: After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running python -c "from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()" fails with a l...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3148
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On Windows, matplotlib fails to load fonts when installed to a folder with non-ascii path","articleBody":"After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running\n\n```\npython -c \"from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()\"\n```\n\nfails with a long traceback that ends with\n\n```\nFile \"C:/non/ascii/path/to/matplotlib/mathtext.py\", line 584, in _get_font\n font = FT2Font(str(basename))\nRuntimeError: Could not open facefile C:/non/ascii/path/to/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource\n```\n\nNote that this is specific to Windows (I wasn't able to reproduce the issue by creating a virtualenv on Linux) and to non-ascii paths (changing the path solved the issue).\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2014-06-25T03:25:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/3148/matplotlib/issues/3148"}
| 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:8bd93c2a-1863-2727-5db0-2d2b09b52ef9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F68:33E60B:26CCFD8:350B7C2:6A53AC5A |
| html-safe-nonce | e22720321c88e8c3b55bb926873353ba2f1cfc7e990824becbee575fb7e86726 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjY4OjMzRTYwQjoyNkNDRkQ4OjM1MEI3QzI6NkE1M0FDNUEiLCJ2aXNpdG9yX2lkIjoiNTg4NjI2NTcxNjE3NzYxMTg2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3c926727e85755aa0dc11df81891aa25840bb95dfb798078786072600e2e84a |
| hovercard-subject-tag | issue:36445928 |
| 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/3148/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b781fa6852feb0cd3fb4cb9de7b6c7e8920db516b0fa3b05ea2d4d271f4115a7/matplotlib/matplotlib/issues/3148 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b781fa6852feb0cd3fb4cb9de7b6c7e8920db516b0fa3b05ea2d4d271f4115a7/matplotlib/matplotlib/issues/3148 |
| og:image:alt | After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running python -c "from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()" fails with a long traceback that... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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