Title: Matplotlib gives useless error message when latex not installed · Issue #4475 · matplotlib/matplotlib · GitHub
Open Graph Title: Matplotlib gives useless error message when latex not installed · Issue #4475 · matplotlib/matplotlib
X Title: Matplotlib gives useless error message when latex not installed · Issue #4475 · matplotlib/matplotlib
Description: Version 1.4.3 on Fedora 22 Linux. After reinstalling my OS, and running a script that previously worked I got the error below. I have tried to extract a simple test case, but I can't figure out what exactly triggers the error. Installing...
Open Graph Description: Version 1.4.3 on Fedora 22 Linux. After reinstalling my OS, and running a script that previously worked I got the error below. I have tried to extract a simple test case, but I can't figure out wha...
X Description: Version 1.4.3 on Fedora 22 Linux. After reinstalling my OS, and running a script that previously worked I got the error below. I have tried to extract a simple test case, but I can't figure out...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4475
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Matplotlib gives useless error message when latex not installed","articleBody":"Version 1.4.3 on Fedora 22 Linux.\n\nAfter reinstalling my OS, and running a script that previously worked I got the error below. I have tried to extract a simple test case, but I can't figure out what exactly triggers the error. Installing texlive fixed it. It would be really nice if I just got a \"Latex is not installed\" error.\n\n``` python\nTraceback (most recent call last):\n File \"./make_plot.py\", line 143, in \u003cmodule>\n srange=srange, namefunc=iscollimator, fname=plot_name, title=name)\n File \"/home/sam/physicstmp/lhc_collimation/plot_tools/20150526/plottfs.py\", line 313, in plot_twiss\n pyplot.savefig(fname, dpi=300)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py\", line 577, in savefig\n res = fig.savefig(*args, **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/figure.py\", line 1476, in savefig\n self.canvas.print_figure(*args, **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/backend_bases.py\", line 2211, in print_figure\n **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_pdf.py\", line 2485, in print_pdf\n self.figure.draw(renderer)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/figure.py\", line 1085, in draw\n func(*args)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/axes/_base.py\", line 2110, in draw\n a.draw(renderer)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/axis.py\", line 1116, in draw\n renderer)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/axis.py\", line 1065, in _get_tick_bboxes\n extent = tick.label1.get_window_extent(renderer)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/text.py\", line 798, in get_window_extent\n bbox, info, descent = self._get_layout(self._renderer)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/text.py\", line 311, in _get_layout\n ismath=False)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_pdf.py\", line 2044, in get_text_width_height_descent\n renderer=self)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/texmanager.py\", line 673, in get_text_width_height_descent\n page = next(iter(dvi))\n File \"/usr/lib64/python2.7/site-packages/matplotlib/dviread.py\", line 89, in __iter__\n have_page = self._read()\n File \"/usr/lib64/python2.7/site-packages/matplotlib/dviread.py\", line 150, in _read\n self._dispatch(byte)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/dviread.py\", line 238, in _dispatch\n self._fnt_def(k, c, s, d, a, l, n)\n File \"/usr/lib64/python2.7/site-packages/matplotlib/dviread.py\", line 399, in _fnt_def\n if c != 0 and tfm.checksum != 0 and c != tfm.checksum:\nAttributeError: 'NoneType' object has no attribute 'checksum'\n```\n","author":{"url":"https://github.com/samtygier","@type":"Person","name":"samtygier"},"datePublished":"2015-05-26T14:13:22Z","url":"https://github.com/matplotlib/matplotlib/issues/4475"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:831ef599-aa5d-196e-2163-92b23183e1d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEF0:DFA9C:28DBE2:370A67:6B067173 |
| html-safe-nonce | 4787ae39736af4f3d3046f2875f5eea8145e9aa4d88cd1484f7fff8bbb899a9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUYwOkRGQTlDOjI4REJFMjozNzBBNjc6NkIwNjcxNzMiLCJ2aXNpdG9yX2lkIjoiMzI2Njg3NzgxMDc2MTE2NzIxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 27fa85edef9ca5b1626fc3a634ade1d672efe5445c6d354311b23a86341d68e0 |
| hovercard-subject-tag | issue:80980125 |
| 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/4475/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e70e3f505ee34bfdafa5a0af1706b6b92a9b1152cf4917fd635d49fd7c31fd3/matplotlib/matplotlib/issues/4475 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e70e3f505ee34bfdafa5a0af1706b6b92a9b1152cf4917fd635d49fd7c31fd3/matplotlib/matplotlib/issues/4475 |
| og:image:alt | Version 1.4.3 on Fedora 22 Linux. After reinstalling my OS, and running a script that previously worked I got the error below. I have tried to extract a simple test case, but I can't figure out wha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samtygier |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width