Title: ImportError: No module named functools_lru_cache · Issue #9344 · matplotlib/matplotlib · GitHub
Open Graph Title: ImportError: No module named functools_lru_cache · Issue #9344 · matplotlib/matplotlib
X Title: ImportError: No module named functools_lru_cache · Issue #9344 · matplotlib/matplotlib
Description: Bug report Bug summary upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported tried uninstall and reinstall matplotlib using MacPorts but the problem still exists Code for reproduction import matplotlib Ac...
Open Graph Description: Bug report Bug summary upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported tried uninstall and reinstall matplotlib using MacPorts but the problem still exists Co...
X Description: Bug report Bug summary upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported tried uninstall and reinstall matplotlib using MacPorts but the problem still exist...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9344
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImportError: No module named functools_lru_cache","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\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\nupgraded matplotlib using MacPorts and found out that matplotlib now can't be imported\r\n\r\ntried uninstall and reinstall matplotlib using MacPorts but the problem still exists\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 \"/Users/Albert_Guo/Desktop/test_code.py\", line 1, in \u003cmodule\u003e\r\n import matplotlib\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.py\", line 128, in \u003cmodule\u003e\r\n from matplotlib.rcsetup import defaultParams, validate_backend, cycler\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/rcsetup.py\", line 29, in \u003cmodule\u003e\r\n from matplotlib.fontconfig_pattern import parse_fontconfig_pattern\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py\", line 32, in \u003cmodule\u003e\r\n from backports.functools_lru_cache import lru_cache\r\nImportError: No module named functools_lru_cache\r\n```\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\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: macOS Sierra Version: 10.12.6\r\n * Matplotlib version: py27-matplotlib @2.1.0_1 (installed by MacPorts)\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): can't print anything because matplotlib can't be imported at the first place\r\n * Python version: python27 @2.7.14 (installed by MacPorts)\r\n * Jupyter version (if applicable): py27-jupyter @1.0.0_1 (installed by MacPorts)\r\n * Other libraries: py27-backports @1.0_0 (installed by MacPorts)\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/Albert-Z-Guo","@type":"Person","name":"Albert-Z-Guo"},"datePublished":"2017-10-10T14:14:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":31},"url":"https://github.com/9344/matplotlib/issues/9344"}
| 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:0e017650-4437-e579-3e17-2579e427d721 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 819E:1F816D:6B381D:91C264:6A51EFAC |
| html-safe-nonce | af37ea9a2994a0fb6a112e031b017317687f97c5ac805633ddf223add4477284 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTlFOjFGODE2RDo2QjM4MUQ6OTFDMjY0OjZBNTFFRkFDIiwidmlzaXRvcl9pZCI6IjU2NjM2MDQ3MDczNTgyNzM0NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8229c30327e224133b611613631c981038bbcbf7f5091c62f61134ef8db526b3 |
| hovercard-subject-tag | issue:264244690 |
| 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/9344/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72230a445d20d832e5060ce02400e119d52d3960409caae2cd41e0659991404b/matplotlib/matplotlib/issues/9344 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72230a445d20d832e5060ce02400e119d52d3960409caae2cd41e0659991404b/matplotlib/matplotlib/issues/9344 |
| og:image:alt | Bug report Bug summary upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported tried uninstall and reinstall matplotlib using MacPorts but the problem still exists Co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Albert-Z-Guo |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width