Title: fail to import matplotlib.pyplot · Issue #2320 · matplotlib/matplotlib · GitHub
Open Graph Title: fail to import matplotlib.pyplot · Issue #2320 · matplotlib/matplotlib
X Title: fail to import matplotlib.pyplot · Issue #2320 · matplotlib/matplotlib
Description: I have found the following problem: I tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine. Ever when I try to import matplotlib.pyplot (with some of my user accounts i use on this Wi...
Open Graph Description: I have found the following problem: I tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine. Ever when I try to import matplotlib.pyplot (with s...
X Description: I have found the following problem: I tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine. Ever when I try to import matplotlib.pyplot (with s...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2320
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fail to import matplotlib.pyplot","articleBody":"I have found the following problem:\n\nI tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine.\n\nEver when I try to import matplotlib.pyplot (with some of my user accounts i use on this Windows-7 machine) I get tthe following error message:\n\nTraceback (most recent call last):\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 1348, in \u003cmodule\u003e\n fontManager = pickle_load(_fmcache)\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 947, in pickle_load\n with open(filename, 'rb') as fh:\nFileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Jobst3\\.matplotlib\\fontList.py3k.cache'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\pyplot.py\", line 24, in \u003cmodule\u003e\n import matplotlib.colorbar\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\colorbar.py\", line 29, in \u003cmodule\u003e\n import matplotlib.collections as collections\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\collections.py\", line 23, in \u003cmodule\u003e\n import matplotlib.backend_bases as backend_bases\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\backend_bases.py\", line 50, in \u003cmodule\u003e\n import matplotlib.textpath as textpath\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\textpath.py\", line 11, in \u003cmodule\u003e\n import matplotlib.font_manager as font_manager\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 1356, in \u003cmodule\u003e\n _rebuild()\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 1341, in _rebuild\n fontManager = FontManager()\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 1004, in __init__\n self.ttflist = createFontList(self.ttffiles)\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 584, in createFontList\n prop = ttfFontProperty(font)\n File \"D:\\WinPython_3.3.2.2\\python-3.3.2.amd64\\lib\\site-packages\\matplotlib\\font_manager.py\", line 398, in ttfFontProperty\n sfnt4 = sfnt4.decode('ascii').lower()\nUnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 0: ordinal not in range(128)\n\nThe same issue happens with other python version (3.2.3 64 bit, as I installed matplotlib 1.3. with easy install).\n\nI found out that this happens only with newly created user accounts, but not with older accounts. As I found out, python is looking for a file located in the user folder: C:\\Users\\Jobst3\\.matplotlib\\fontList.py3k.cache' which is not there in the newly created user account.\n\nBut the file is available in older user accounts. The file was created by an older version of matplotlib (matplotlib-1.2.0rc2.win-amd64-py3.2), and everything goes fine, if i use these accounts.\n\nI am not able to test the issue on a complete new and clean Windows-7 machine at the moment\n\nMatthias\n","author":{"url":"https://github.com/matthiasdresden","@type":"Person","name":"matthiasdresden"},"datePublished":"2013-08-21T10:22:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/2320/matplotlib/issues/2320"}
| 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:18aa936a-b3ce-29b0-b277-2e5a35ca80e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F22:15E3B:D70778:122D03A:6A5326C6 |
| html-safe-nonce | 7708c0cba9d516862d9204c2d0e41d47e7c70ac0a4bc0a7d193a4206e5180365 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjIyOjE1RTNCOkQ3MDc3ODoxMjJEMDNBOjZBNTMyNkM2IiwidmlzaXRvcl9pZCI6IjQxMjUyNzMyNjg3Njc4OTMxOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 602ea3a68ae67649930032635d11c10608a84cc907d0c0e656fc332647d5e465 |
| hovercard-subject-tag | issue:18346167 |
| 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/2320/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc9a32e0fab216450958eacc510334b1ef285ca7bdbb7b03b4ab200b5a6dfc9c/matplotlib/matplotlib/issues/2320 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc9a32e0fab216450958eacc510334b1ef285ca7bdbb7b03b4ab200b5a6dfc9c/matplotlib/matplotlib/issues/2320 |
| og:image:alt | I have found the following problem: I tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine. Ever when I try to import matplotlib.pyplot (with s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthiasdresden |
| 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