PiRSquared17 / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

fontList.py3k.cache not found #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
With normal installation of WinPython 3.3.2.3, I had some error and I don't 
know why. I try to install another version of WinPython (2.7.5), the problem 
remain. I try to change to another pc, the problem remain.

What is the expected output? What do you see instead?

Spyder's Python interpreter has errer, track back as follow:

Traceback (most recent call last):
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1348, in <module>
    fontManager = pickle_load(_fmcache)
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 947, in pickle_load
    with open(filename, 'rb') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 
'D:\\WinPython\\3.3.2.3\\settings\\.matplotlib\\fontList.py3k.cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\spyderlib\scientific_startup.py", line 29, in <module>
    from pylab import *  #analysis:ignore
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\pylab.py", line 226, in <module>
    import matplotlib.finance
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\finance.py", line 23, in <module>
    from matplotlib.collections import LineCollection, PolyCollection
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\collections.py", line 23, in <module>
    import matplotlib.backend_bases as backend_bases
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\backend_bases.py", line 50, in <module>
    import matplotlib.textpath as textpath
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\textpath.py", line 11, in <module>
    import matplotlib.font_manager as font_manager
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1356, in <module>
    _rebuild()
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1341, in _rebuild
    fontManager = FontManager()
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1004, in __init__
    self.ttflist = createFontList(self.ttffiles)
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 584, in createFontList
    prop = ttfFontProperty(font)
  File "D:\WinPython\3.3.2.3\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 398, in ttfFontProperty
    sfnt4 = sfnt4.decode('ascii').lower()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 0: ordinal 
not in range(128)

WinPython Interpreter is okay, but IPython's two shortcuts cannot start.

What version of the product are you using? On what operating system?
3.3.2.3, 2.7.5.2. Win 7 64bit and Win 8 64bit.

Please provide any additional information below.

Original issue reported on code.google.com by nihea...@gmail.com on 27 Aug 2013 at 2:06

GoogleCodeExporter commented 9 years ago
Fixed.
matplotlib 1.3.0 has some bug with non-ascii font names.

https://github.com/matplotlib/matplotlib/pull/2307

Original comment by nihea...@gmail.com on 2 Sep 2013 at 1:29