Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-25 Thread Rich Shepard
On Mon, 24 Oct 2011, Rich Shepard wrote: so no more tracebacks? I'll try again tomorrow morning before I head to the dentist. I didn't try then, but just did now. Still the same error: Found an unknown keyword in AFM header (was Underline) Traceback (most recent call last): File

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-25 Thread Paul Ivanov
On Tue, Oct 25, 2011 at 1:59 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 24 Oct 2011, Rich Shepard wrote: so no more tracebacks?   I'll try again tomorrow morning before I head to the dentist.   I didn't try then, but just did now. Still the same error: Found an unknown

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-25 Thread Rich Shepard
On Tue, 25 Oct 2011, Paul Ivanov wrote: Well, I hope the dentist trip was more of a success :) Don't worry about it - it's become kind of a fun challenge now. Paul, Yes, it was a nice, long, relaxing visit. I go to the dental school at the health sciences university; costs ~ 1/3rd less

Re: [Matplotlib-users] 0.99.1.2: error in afm.py [RESOLVED]

2011-10-25 Thread Rich Shepard
On Tue, 25 Oct 2011, Paul Ivanov wrote: I see you sent this just a few minutes ago - let's try to figure this out interactively via IRC on #matplotlib channel on freenode. If you don't have an IRC client handy, you can just use this web-based one.

Re: [Matplotlib-users] 0.99.1.2: error in afm.py [RESOLVED]

2011-10-25 Thread Paul Ivanov
On Tue, Oct 25, 2011 at 4:59 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Tue, 25 Oct 2011, Paul Ivanov wrote: I see you sent this just a few minutes ago - let's try to figure this out interactively via IRC on #matplotlib channel on freenode. If you don't have an IRC client handy, you

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Rich Shepard
On Sun, 23 Oct 2011, Paul Ivanov wrote: Change my request to add 'sys.stderr.write(fh.name)' before the 'while 1:' in _parse_char_metrics - just so we don't have any buffering issues. The last file you see printed there will be the one that's causing the issue. You can then try removing it,

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Paul Ivanov wrote:   Would you like a copy of kidsn.afm? sure. let's take a look. StartFontMetrics 2.0 Comment Kids-Normal Comment Copyright (c) 1992 Corel Corporation. All Rights Reserved. Comment Creation Date: Mon Jun 15 12:00:00 1992 Comment UniqueID 5029202 Comment

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Paul Ivanov
On Mon, Oct 24, 2011 at 2:47 PM, Rich Shepard rshep...@appl-ecosys.com wrote: Underline Position -100 Underline Thickness 50 those two properties should not have spaces in them - according the the AFM file spec that I could find - they should be one word - which is what matplotlib expects - and

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Paul Ivanov
On Mon, Oct 24, 2011 at 3:26 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 24 Oct 2011, Paul Ivanov wrote: those two properties should not have spaces in them - according the the AFM file spec that I could find - they should be one word - which is what matplotlib expects - and this

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Paul Ivanov wrote: so no more tracebacks? Don't know. I'm processing accounts payable, beating up a client who's late paying an invoice, trying to figure out which R package/function I need, and more. It's been a rather crappy day, if you must know the truth. :-)

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-22 Thread Rich Shepard
On Fri, 21 Oct 2011, Paul Ivanov wrote: Is there a particular reason you just upgraded to a version of matplotlib that is almost 2 years old now? Matplotlib 1.1.0 was released a few weeks ago, Paul, Yes, the reason was 0.99.1.2 was on the SlackBuilds.org site, so I didn't check to see if

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Paul Ivanov
Hi Rich, On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard rshep...@appl-ecosys.com wrote:   After a long hiatus I'm again working on an application and just upgraded matplotlib from 0.98.5.2 to 0.99.1.2. Is there a particular reason you just upgraded to a version of matplotlib that is almost 2

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Benjamin Root
On Friday, October 21, 2011, Paul Ivanov pivanov...@gmail.com wrote: Hi Rich, On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard rshep...@appl-ecosys.com wrote: After a long hiatus I'm again working on an application and just upgraded matplotlib from 0.98.5.2 to 0.99.1.2. Is there a

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Benjamin Root
On Friday, October 21, 2011, Benjamin Root ben.r...@ou.edu wrote: On Friday, October 21, 2011, Paul Ivanov pivanov...@gmail.com wrote: Hi Rich, On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard rshep...@appl-ecosys.com wrote: After a long hiatus I'm again working on an application and just

[Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Rich Shepard
After a long hiatus I'm again working on an application and just upgraded matplotlib from 0.98.5.2 to 0.99.1.2. However, there's an error on start up that I need your help in resolving. There are many dozens of lines containing: Found an unknown keyword in AFM header (was Underline) The

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Benjamin Root
On Mon, Oct 17, 2011 at 12:57 PM, Rich Shepard rshep...@appl-ecosys.comwrote: After a long hiatus I'm again working on an application and just upgraded matplotlib from 0.98.5.2 to 0.99.1.2. However, there's an error on start up that I need your help in resolving. There are many dozens of

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Rich Shepard
On Mon, 17 Oct 2011, Benjamin Root wrote: In the afm.py file, a before line 167, can you print the value of the line variable and tell us what it is? Ben, Here are lines 158-167: while 1: line = fh.readline() if not line: break line = line.rstrip()

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Benjamin Root
On Monday, October 17, 2011, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 17 Oct 2011, Benjamin Root wrote: In the afm.py file, a before line 167, can you print the value of the line variable and tell us what it is? Ben, Here are lines 158-167: while 1: line =

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Rich Shepard
On Mon, 17 Oct 2011, Benjamin Root wrote: On line 166, I want you to put print 'Line:', line. Then, rerun your program and report back what the output of that print statement. Ben, Sorry I mis-understood your request. I redirected the output to a file 'error.log' and it contains

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Benjamin Root
On Monday, October 17, 2011, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 17 Oct 2011, Benjamin Root wrote: On line 166, I want you to put print 'Line:', line. Then, rerun your program and report back what the output of that print statement. Ben, Sorry I mis-understood your

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-17 Thread Rich Shepard
On Mon, 17 Oct 2011, Benjamin Root wrote: I only need the last line printed by that print statement. I want to see how the parsing failed. Ben, Here are the last 3: Line: C 125 ; WX 273 ; N braceright ; B 55 -68 244 707 ; Line: C 126 ; WX 586 ; N asciitilde ; B 39 219 531 408 ; Line: C