KeyError: '13'

Peter Otten __peter__ at web.de
Wed Jun 6 09:14:18 EDT 2012


Phanindra Ramesh Challa wrote:

[Please hit "reply-all" in you email client when you answer a post. That way 
it will appear on the mailing list and give more people a chance to answer]

> output of the is just the line
> "sizes".

>> and then decide if you to need to change the lookup key or to add records
>> to the database.
>>
> How can I add recors to the database?

The Python part of the answer is 

db[some_key] = some_value

but I fear that won't help. Google suggests you are struggling with the 
metatype project If so, there seems to be a corresponding mk_db.py that you 
can use. I don't know anything about metatype, but the comment in mk_db.py 
at 
http://metatype.cvs.sourceforge.net/viewvc/metatype/metatype/mk_db.py?revision=1.3&view=markup

tells to run it like so:

find . -name '*.ugs' | python mk_db.py -a glyphlist -o dbmfile

Perhaps you ran it, but there weren't any *.ugs files?




More information about the Python-list mailing list