Title: Can't import matplotlib · Issue #12601 · matplotlib/matplotlib · GitHub
Open Graph Title: Can't import matplotlib · Issue #12601 · matplotlib/matplotlib
X Title: Can't import matplotlib · Issue #12601 · matplotlib/matplotlib
Description: Bug report Bug summary Importing matplotlib fails with ImportError: cannot import name 'get_backend' from 'matplotlib'. Code for reproduction import matplotlib Actual outcome Traceback (most recent call last): File "
Open Graph Description: Bug report Bug summary Importing matplotlib fails with ImportError: cannot import name 'get_backend' from 'matplotlib'. Code for reproduction import matplotlib Actual outcome Traceback (most recent...
X Description: Bug report Bug summary Importing matplotlib fails with ImportError: cannot import name 'get_backend' from 'matplotlib'. Code for reproduction import matplotlib Actual outcome Traceb...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't import matplotlib","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nImporting matplotlib fails with `ImportError: cannot import name 'get_backend' from 'matplotlib'`.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/usr/lib/python3.7/site-packages/matplotlib/__init__.py\", line 1080, in \u003cmodule\u003e\r\n rcParamsOrig = RcParams(rcParams.copy())\r\n File \"/usr/lib/python3.7/site-packages/matplotlib/__init__.py\", line 870, in __getitem__\r\n from matplotlib import pyplot as plt\r\n File \"/usr/lib/python3.7/site-packages/matplotlib/pyplot.py\", line 33, in \u003cmodule\u003e\r\n import matplotlib.image\r\n File \"/usr/lib/python3.7/site-packages/matplotlib/image.py\", line 18, in \u003cmodule\u003e\r\n from matplotlib.backend_bases import FigureCanvasBase\r\n File \"/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py\", line 46, in \u003cmodule\u003e\r\n from matplotlib import (\r\nImportError: cannot import name 'get_backend' from 'matplotlib' (/usr/lib/python3.7/site-packages/matplotlib/__init__.py)\r\n```\r\n\r\n**Expected outcome**\r\n\r\nMatplotlib is imported\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: GNU/Linux\r\n * Matplotlib version: 3.0 git master\r\n * Python version: 3.7.1\r\n\r\nPython from Arch repo, matplotlib from git master.\r\n","author":{"url":"https://github.com/beojan","@type":"Person","name":"beojan"},"datePublished":"2018-10-23T14:35:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/12601/matplotlib/issues/12601"}
| 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:c859c8a0-e9cf-40f5-3c36-de7328368b6a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A122:268A21:844FC0:B2D755:6A5307FE |
| html-safe-nonce | d64e38f875d2db4040bbff6fb404105a846cf71427c154edad45beea910371d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTIyOjI2OEEyMTo4NDRGQzA6QjJENzU1OjZBNTMwN0ZFIiwidmlzaXRvcl9pZCI6Ijc5NjkyMDkzNjczNjE5NDc2NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 54e6fd4ea3ebb85a414e69b992b646f17b8a6baa91567c7f2b403be7ff5946ef |
| hovercard-subject-tag | issue:373035254 |
| 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/12601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7526e6fd60699a4d9a9257e4a49be0396d246aba07033d3b95ed5048b1001928/matplotlib/matplotlib/issues/12601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7526e6fd60699a4d9a9257e4a49be0396d246aba07033d3b95ed5048b1001928/matplotlib/matplotlib/issues/12601 |
| og:image:alt | Bug report Bug summary Importing matplotlib fails with ImportError: cannot import name 'get_backend' from 'matplotlib'. Code for reproduction import matplotlib Actual outcome Traceback (most recent... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beojan |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width