Title: matplotlib 1.5.3 raise TypeError: 'module' object is not subscriptable on pylab.py · Issue #7186 · matplotlib/matplotlib · GitHub
Open Graph Title: matplotlib 1.5.3 raise TypeError: 'module' object is not subscriptable on pylab.py · Issue #7186 · matplotlib/matplotlib
X Title: matplotlib 1.5.3 raise TypeError: 'module' object is not subscriptable on pylab.py · Issue #7186 · matplotlib/matplotlib
Description: matplotlib:1.5.3 python version: 2.7.10 (0e2d9a73f5a1818d0245d75daccdbe21b2d5c3ef, Sep 27 2016, 02:22:00)\n[PyPy 5.4.1 with GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] CentOS 7.1 How did you install Matplotlib and Python (pip, anaconda, from s...
Open Graph Description: matplotlib:1.5.3 python version: 2.7.10 (0e2d9a73f5a1818d0245d75daccdbe21b2d5c3ef, Sep 27 2016, 02:22:00)\n[PyPy 5.4.1 with GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] CentOS 7.1 How did you install Matp...
X Description: matplotlib:1.5.3 python version: 2.7.10 (0e2d9a73f5a1818d0245d75daccdbe21b2d5c3ef, Sep 27 2016, 02:22:00)\n[PyPy 5.4.1 with GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] CentOS 7.1 How did you install Matp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"matplotlib 1.5.3 raise TypeError: 'module' object is not subscriptable on pylab.py","articleBody":"matplotlib:1.5.3 \npython version: 2.7.10 (0e2d9a73f5a1818d0245d75daccdbe21b2d5c3ef, Sep 27 2016, 02:22:00)\\n[PyPy 5.4.1 with GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]\nCentOS 7.1\n- [ ] How did you install Matplotlib and Python (pip, anaconda, from source ...)\n pip\n\nthis code raise:`TypeError: 'module' object is not subscriptable`\n\n``` python\nfrom numpy.random import bytes # or *\n __builtins__['bytes']\n```\n\nin pypy,and matplotlib use this code in \nhttps://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/pylab.py#L286\nIt looks like in python3.4.1,also raise this error\nshould it modify to:\n\n```\nbytes = __builtins__.bytes\n```\n\nfor better compatibility?\n\nBTW:maybe have something wrong because I found python 2.7.5 also raise `TypeError: 'module' object has no attribute '__getitem__'` in this line but have no one report\n","author":{"url":"https://github.com/zjjott","@type":"Person","name":"zjjott"},"datePublished":"2016-09-27T09:58:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/7186/matplotlib/issues/7186"}
| 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:68c25f68-f05e-37c4-5f18-05a0f72066a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1BE:2C5881:C54ED:116830:6A5472FA |
| html-safe-nonce | a99e84e74a57a67b2395494a2453d757e563352c411689ae0d11dbd6a8f710ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUJFOjJDNTg4MTpDNTRFRDoxMTY4MzA6NkE1NDcyRkEiLCJ2aXNpdG9yX2lkIjoiODA5NzQ4NzUzMjQyNDE5OTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d368a73700dfe2b07e43801947228cccf6fc1a1535b681f5f303e440a7171111 |
| hovercard-subject-tag | issue:179448574 |
| 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/7186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5843c4436e05b7caaf93b9d3334908053a4cebf9a51039fe88f24f1235deddb0/matplotlib/matplotlib/issues/7186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5843c4436e05b7caaf93b9d3334908053a4cebf9a51039fe88f24f1235deddb0/matplotlib/matplotlib/issues/7186 |
| og:image:alt | matplotlib:1.5.3 python version: 2.7.10 (0e2d9a73f5a1818d0245d75daccdbe21b2d5c3ef, Sep 27 2016, 02:22:00)\n[PyPy 5.4.1 with GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] CentOS 7.1 How did you install Matp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zjjott |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width