Trying to get a colleague to start using python, he ran into trouble,
getting an error exit whenever he tried to fire up
ipython -pylab
After much searching, he figured it out... it appears that a small patch may be
in order. Here is his note :
···
I found it: I have a font installed in my personal fonts
directory that has non-integral sides for the "bounding box"
of the font.Fortunately, it seems like once I move my ~/.fonts
directory "off to the side" and then runipython -pylab
then some of that configuration info must be cached, since I
am able to move my .fonts file back and still have my ipython
-pylab come up.The offending line is in the return statement below
#Convert string the a python type
_to_int = int
_to_float = float
_to_str = strdef _to_list_of_ints(s):
s = s.replace(',', ' ')
return [_to_int(val) for val in s.split()]and I think a fix would be along the lines of Alan's remark:
return [_to_int(_to_float(val)) for val in s.split()]
This is in the file
/glb/apps/sss/epd/2.5.4.2.30201/lib/python2.5/site-packages/ma
tplotlib-0.98.5.2n1-py2.5-linux-x86_64.egg/matplotlib/afm.pyAnyway, it works for me.
--
-----------------------------------------------------------------------
Alan K. Jackson | To see a World in a Grain of Sand |
alan@...895... | And a Heaven in a Wild Flower, |
www.ajackson.org | Hold Infinity in the palm of your hand |
Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------