0
Not a bug

Debugging Errors

Matt Klenk 11 years ago updated by Christian Fritz 11 years ago 2

I get the following error: <type 'exceptions.KeyError'> 


A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/home/mogli/public_html/cgi-bin/pyBibBase/pyBibBase.cgi in ()
 1194 
 1195 # the main call
 1196 showBib(fields)
 1197 
 1198 logstring = os.environ['SERVER_NAME'] + os.environ['REQUEST_URI'].replace('&','&amp;')
showBib = <function showBib>, fields = {'bib': 'www.matthewklenk.com/files/cv.bib', 'proxy': '1'}
/home/mogli/public_html/cgi-bin/pyBibBase/pyBibBase.cgi in showBib(fields={'bib': 'www.matthewklenk.com/files/cv.bib', 'proxy': '1'})
 904 # --- from that ugly "e" structure into our own, nice
 905 # --- class object
 906 be = processBib(data,entry,bibpath,basefilename,fields.has_key("css"),purebiburl)
 907 
 908 # --- Create a html page just containing this entry
be = <__main__.bibEntry instance>, global processBib = <function processBib>, data = Entry(u'inproceedings', fields={u'title': u'Orde... in Modeling Moral Decision-Making'}, persons={}), entry = u'dehghani2008', bibpath = 'http://www.matthewklenk.com/files/', basefilename = u'cache/www.matthewklenk.com_files_cv.bib/dehghani2008', fields = {'bib': 'www.matthewklenk.com/files/cv.bib', 'proxy': '1'}, fields.has_key = <built-in method has_key of dict object>, purebiburl = 'www.matthewklenk.com/files/cv.bib'
/home/mogli/public_html/cgi-bin/pyBibBase/pyBibBase.cgi in processBib(data=Entry(u'inproceedings', fields={u'title': u'Orde... in Modeling Moral Decision-Making'}, persons={}), entryname=u'dehghani2008', bibpath='http://www.matthewklenk.com/files/', basefilename=u'cache/www.matthewklenk.com_files_cv.bib/dehghani2008', css=False, purebiburl='www.matthewklenk.com/files/cv.bib')
 438 elif data.persons.has_key("editor"):
 439 author_or_editor = "editor"
 440 authorlist = data.persons[author_or_editor]
 441 
 442 # if (fields.has_key("debug") and (not debug == "")):
authorlist undefineddata = Entry(u'inproceedings', fields={u'title': u'Orde... in Modeling Moral Decision-Making'}, persons={}), data.persons = {}, author_or_editor = ''


http://matthewklenk.com/index2.php

Answer

Answer
Not a bug
Sorry for the ugly debug message, but this is actually just pointing out a problem with your bib file. There is a comma missing behind "title" in the dehghani2008 entry.
@inproceedings{dehghani2008,
  title={Order of Magnitude Reasoning in Modeling Moral Decision-Making}
  author={Morteza Dehghani and Emmett Tomai and Ken Forbus and Matthew Klenk},
  journal={Proceedings of the 22nd international workshop on qualitative reasoning},
  year={2008},
  url={http://matthewklenk.com/papers/QR08-MoralDM.pdf}
}

Answer
Not a bug
Sorry for the ugly debug message, but this is actually just pointing out a problem with your bib file. There is a comma missing behind "title" in the dehghani2008 entry.
@inproceedings{dehghani2008,
  title={Order of Magnitude Reasoning in Modeling Moral Decision-Making}
  author={Morteza Dehghani and Emmett Tomai and Ken Forbus and Matthew Klenk},
  journal={Proceedings of the 22nd international workshop on qualitative reasoning},
  year={2008},
  url={http://matthewklenk.com/papers/QR08-MoralDM.pdf}
}

The error was a missing comma in my BibTex file.  I guess it is not too hard to figure out from the python error message.

Also, you may want to use

\~{n}
instead of

 

{\~n}

Both are legal latex, but I haven't yte implemented the second notation, which is why the entry below is not formatted quite right.


@inproceedings{DBLP:conf/flairs/Munoz-AvilaAJKM10,
  author    = {Hector Mu{\~n}oz-Avila and
               David W. Aha and
               Ulit Jaidee and
               Matthew Klenk and
               Matthew Molineaux},
  title     = {Applying Goal Driven Autonomy to a Team Shooter Game},
  booktitle = {Proceedings of the Twenty-Third International Florida Artificial
               Intelligence Research Society Conference, May 19-21, 2010,
               Daytona Beach, Florida},
  year      = {2010},
  ee        = {http://www.aaai.org/ocs/index.php/FLAIRS/2010/paper/view/1307},
  bibsource = {DBLP, http://dblp.uni-trier.de}
}