On Tue, 31 Aug 2010 15:35:59 -0400, ucko@debian.org (Aaron M. Ucko) wrote:
> > UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 118533: invalid continuation byte
>
> That looks like an encoding issue; I would suggest either converting
> your .bib file to UTF-8 or running pybtex -e ISO-8859-1.
Thanks again, Aaron. I could tell encoding was the issue there, but I
wasn't sure what the solution was. Still certainly not a "drop in
replacement". In any event, using ISO-8859-1 didn't work either:
0 $ pybtex -e ISO-8859-1 thesis
Traceback (most recent call last):
File "/usr/bin/pybtex", line 21, in <module>
main()
File "/usr/lib/pymodules/python2.6/pybtex/cmdline.py", line 42, in __call__
self.main()
File "/usr/lib/pymodules/python2.6/pybtex/cmdline.py", line 84, in main
self.run(options, args)
File "/usr/lib/pymodules/python2.6/pybtex/__main__.py", line 145, in run
engine.make_bibliography(filename, **kwargs)
File "/usr/lib/pymodules/python2.6/pybtex/bibtex/__init__.py", line 47, in make_bibliography
interpreter.run(bst_script, aux_data.citations, bib_filenames, bbl_file, min_crossrefs=min_crossrefs)
File "/usr/lib/pymodules/python2.6/pybtex/bibtex/interpreter.py", line 226, in run
getattr(self, commandname)()
File "/usr/lib/pymodules/python2.6/pybtex/bibtex/interpreter.py", line 259, in command_iterate
self._iterate(self.citations)
File "/usr/lib/pymodules/python2.6/pybtex/bibtex/interpreter.py", line 265, in _iterate
self.current_entry = self.bib_data.entries[key]
KeyError: u'?'
1 $
Nor did just plane 'ASCII'. Not sure what else to try. Suggestions?
It would be nice if it could figure out the file encoding for itself.
Maybe after I defend...
> > 1 $ nbibtex thesis
> > Call failed: /usr/share/nbibtex/bibtex.lua:1460: module 'nbib-plain' not found:
> > no field package.preload['nbib-plain']
>
> That looks more like a packaging bug.
Yeah, I filed a bug (595069).
jamie.
Attachment:
pgpMUZ1mky8ED.pgp
Description: PGP signature