On Monday, October 17, 2011, Rich Shepard <rshepard@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 = fh.readline()
>         if not line: break
>         line = line.rstrip()
>         if line.startswith('EndCharMetrics'): return ascii_d, name_d
>         vals = line.split(';')[:4]
>         if len(vals) !=4 : raise RuntimeError('Bad char metrics line: %s'
>         num = _to_int(vals[0].split()[1])
>         wx = _to_float(vals[1].split()[1])
>         name = vals[2].split()[1]
>
> Thanks,
>
> Rich
>

Rich,

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 Root