You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(33) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(7) |
Feb
(44) |
Mar
(51) |
Apr
(43) |
May
(43) |
Jun
(36) |
Jul
(61) |
Aug
(44) |
Sep
(25) |
Oct
(82) |
Nov
(97) |
Dec
(47) |
2005 |
Jan
(77) |
Feb
(143) |
Mar
(42) |
Apr
(31) |
May
(93) |
Jun
(93) |
Jul
(35) |
Aug
(78) |
Sep
(56) |
Oct
(44) |
Nov
(72) |
Dec
(75) |
2006 |
Jan
(116) |
Feb
(99) |
Mar
(181) |
Apr
(171) |
May
(112) |
Jun
(86) |
Jul
(91) |
Aug
(111) |
Sep
(77) |
Oct
(72) |
Nov
(57) |
Dec
(51) |
2007 |
Jan
(64) |
Feb
(116) |
Mar
(70) |
Apr
(74) |
May
(53) |
Jun
(40) |
Jul
(519) |
Aug
(151) |
Sep
(132) |
Oct
(74) |
Nov
(282) |
Dec
(190) |
2008 |
Jan
(141) |
Feb
(67) |
Mar
(69) |
Apr
(96) |
May
(227) |
Jun
(404) |
Jul
(399) |
Aug
(96) |
Sep
(120) |
Oct
(205) |
Nov
(126) |
Dec
(261) |
2009 |
Jan
(136) |
Feb
(136) |
Mar
(119) |
Apr
(124) |
May
(155) |
Jun
(98) |
Jul
(136) |
Aug
(292) |
Sep
(174) |
Oct
(126) |
Nov
(126) |
Dec
(79) |
2010 |
Jan
(109) |
Feb
(83) |
Mar
(139) |
Apr
(91) |
May
(79) |
Jun
(164) |
Jul
(184) |
Aug
(146) |
Sep
(163) |
Oct
(128) |
Nov
(70) |
Dec
(73) |
2011 |
Jan
(235) |
Feb
(165) |
Mar
(147) |
Apr
(86) |
May
(74) |
Jun
(118) |
Jul
(65) |
Aug
(75) |
Sep
(162) |
Oct
(94) |
Nov
(48) |
Dec
(44) |
2012 |
Jan
(49) |
Feb
(40) |
Mar
(88) |
Apr
(35) |
May
(52) |
Jun
(69) |
Jul
(90) |
Aug
(123) |
Sep
(112) |
Oct
(120) |
Nov
(105) |
Dec
(116) |
2013 |
Jan
(76) |
Feb
(26) |
Mar
(78) |
Apr
(43) |
May
(61) |
Jun
(53) |
Jul
(147) |
Aug
(85) |
Sep
(83) |
Oct
(122) |
Nov
(18) |
Dec
(27) |
2014 |
Jan
(58) |
Feb
(25) |
Mar
(49) |
Apr
(17) |
May
(29) |
Jun
(39) |
Jul
(53) |
Aug
(52) |
Sep
(35) |
Oct
(47) |
Nov
(110) |
Dec
(27) |
2015 |
Jan
(50) |
Feb
(93) |
Mar
(96) |
Apr
(30) |
May
(55) |
Jun
(83) |
Jul
(44) |
Aug
(8) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(4) |
2
(2) |
3
(2) |
4
(9) |
5
(1) |
6
(1) |
7
|
8
(3) |
9
(1) |
10
|
11
(11) |
12
(14) |
13
(1) |
14
(15) |
15
(5) |
16
(1) |
17
(3) |
18
(1) |
19
(5) |
20
(1) |
21
(2) |
22
|
23
(1) |
24
|
25
|
26
(1) |
27
(1) |
28
|
29
|
30
(1) |
I didn't expect anything to be honest. In fact I just wanted to know if this problem is known or not. Before I posted I crawled through earlier revisions of cbook.py on github. All revisions I found used the ominous os.path.walk(). In the next step I copied an older FontList.cache to the new name and tried reimporting pylab. That gave me an ValueError while unpickling. I attached both tracebacks, without FontList.py3k.cache present and with it. So I will try rewriting this part to get a FontList.py3k.cache using Py3k. Greetz Tobi ------------------------------------ Following the traceback for importing pylab without a FontList.py3k.cache present: Python 3.2 (unknown, Apr 6 2011, 18:44:52) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 1309, in <module> fontManager = pickle_load(_fmcache) File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 922, in pickle_load fh = open(filename, 'rb') IOError: [Errno 2] No such file or directory: '/home/erg/.matplotlib/fontList.py3k.cache' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.2/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/usr/local/lib/python3.2/site-packages/matplotlib/pylab.py", line 221, in <module> from matplotlib import mpl # pulls in most modules File "/usr/local/lib/python3.2/site-packages/matplotlib/mpl.py", line 2, in <module> from matplotlib import axis File "/usr/local/lib/python3.2/site-packages/matplotlib/axis.py", line 10, in <module> import matplotlib.font_manager as font_manager File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 1317, in <module> _rebuild() File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 1304, in _rebuild fontManager = FontManager() File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 967, in __init__ self.ttffiles = findSystemFonts(paths) + findSystemFonts() File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 317, in findSystemFonts files = list_fonts(path, fontexts) File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 167, in list_fonts return cbook.listFiles(directory, pattern) File "/usr/local/lib/python3.2/site-packages/matplotlib/cbook.py", line 1069, in listFiles os.path.walk(root, visit, arg) AttributeError: 'module' object has no attribute 'walk' >>> ------------------------ Traceback with a copy of an older FontList.cache: Python 3.2 (unknown, Apr 6 2011, 18:44:52) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 1309, in <module> fontManager = pickle_load(_fmcache) File "/usr/local/lib/python3.2/site-packages/matplotlib/font_manager.py", line 924, in pickle_load data = pickle.load(fh) ValueError: invalid literal for int() with base 10: "9\nNtRp173\n(dp174\ng12\ng13\nsg14\nS'Sarai'\np175\nsg16\nI400\nsg17\ng13\nsg18\ng13\nsg19\nS'/usr/share/fonts/truetype/ttf-devanagari-fonts/Sarai_07.ttf'\np176\nsg21\ng22\nsbag7\n(g8\ng9\nNtRp177\n(dp178\ng12\ng61\nsg14\nS'GFS" During handling of the above exception, another exception occurred: -- snip -- the same exception regaring os.path.walk() On 04/08/2011 09:06 PM, Michael Droettboom wrote: > Can you provide a traceback? I think this usage of os.path.walk may > have crept back in from a recent merge from master. It didn't get > noticed because it only runs if the user doesn't already have a font > cache file. > > I don't have a chance to look at this right now, but it you want to > submit a patch to convert this os.path.walk usage to os.walk, that > would of course be appreciated. > > In general, don't expect the Python 3.x branch to be terribly useful > for production work right now... There's probably lots of sharp edges > like this still lingering beneath the surface. > > Cheers, > Mike > > On 04/08/2011 03:50 PM, Tobias Hoppe wrote: >> Hi all, >> >> grepping matplotlib-py3k from github, configuring, compiling and >> installing with python3.2 under Ubuntu posed no problems. Firing up >> python and import matplotlib shows no errors in the first place. >> Importing pylab brings up errors in cbook.py, namely the call to >> os.path.walk() in line 1069 which is deprecated since python3.0. >> >> Without a proper replacement for os.path.walk() FontList.cache can't >> be generated. Is it just my fault at some point or is it still broken >> and needs fixing? If it needs fixing I will gladly look into it. What >> get's me wondering is that someone managed to get a simple plot out >> of mpl on python3. >> >> Please give me a hint, if I need to work on it. >> >> Greetz, Tobi >> >> >> ------------------------------------------------------------------------------ >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> >> >> _______________________________________________ >> Matplotlib-devel mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > > > -- > Michael Droettboom > Science Software Branch > Space Telescope Science Institute > Baltimore, Maryland, USA > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Can you provide a traceback? I think this usage of os.path.walk may have crept back in from a recent merge from master. It didn't get noticed because it only runs if the user doesn't already have a font cache file. I don't have a chance to look at this right now, but it you want to submit a patch to convert this os.path.walk usage to os.walk, that would of course be appreciated. In general, don't expect the Python 3.x branch to be terribly useful for production work right now... There's probably lots of sharp edges like this still lingering beneath the surface. Cheers, Mike On 04/08/2011 03:50 PM, Tobias Hoppe wrote: > Hi all, > > grepping matplotlib-py3k from github, configuring, compiling and > installing with python3.2 under Ubuntu posed no problems. Firing up > python and import matplotlib shows no errors in the first place. > Importing pylab brings up errors in cbook.py, namely the call to > os.path.walk() in line 1069 which is deprecated since python3.0. > > Without a proper replacement for os.path.walk() FontList.cache can't > be generated. Is it just my fault at some point or is it still broken > and needs fixing? If it needs fixing I will gladly look into it. What > get's me wondering is that someone managed to get a simple plot out of > mpl on python3. > > Please give me a hint, if I need to work on it. > > Greetz, Tobi > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA
<html><head></head><body bgcolor='#FFFFFF' style='font-size:12px;background-color:#FFFFFF;font-family:Verdana, Arial, sans-serif;'>Hi all,<br/><br/>grepping matplotlib-py3k from github, configuring, compiling and installing with python3.2 under Ubuntu posed no problems. Firing up python and import matplotlib shows no errors in the first place. Importing pylab brings up errors in cbook.py, namely the call to os.path.walk() in line 1069 which is deprecated since python3.0.<br/><br/>Without a proper replacement for os.path.walk() FontList.cache can't be generated. Is it just my fault at some point or is it still broken and needs fixing? If it needs fixing I will gladly look into it. What get's me wondering is that someone managed to get a simple plot out of mpl on python3.<br/><br/>Please give me a hint, if I need to work on it.<br/><br/>Greetz, Tobi</body></html>