I wanted to try the package out on my break on my entire bib database. I installed it via pip install (for the user) and ran it, but it didn't generate a result.
Hope it helps improve the package :).
> bibcites references.bib
Traceback (most recent call last):
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 107, in expand_string
self.strings[name])
KeyError: 'aug'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/japhir/.local/bin/bibcites", line 8, in <module>
sys.exit(cli())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/japhir/.local/lib/python3.10/site-packages/bibcites/__init__.py", line 40, in cli
db = bibtexparser.load(bibtex_file)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/__init__.py", line 69, in load
return parser.parse_file(bibtex_file)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bparser.py", line 169, in parse_file
return self.parse(file.read(), partial=partial)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bparser.py", line 147, in parse
self._expr.parseFile(bibtex_file_obj)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibtexexpression.py", line 278, in parseFile
return self.main_expression.parseFile(file_obj, parseAll=True)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 1859, in parse_file
return self.parse_string(file_contents, parseAll)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 1097, in parse_string
loc, tokens = self._parse(instring, 0)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 787, in _parseNoCache
loc, tokens = self.parseImpl(instring, preloc, doActions)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4695, in parseImpl
return super().parseImpl(instring, loc, doActions)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4603, in parseImpl
loc, tokens = self_expr_parse(instring, loc, doActions)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 787, in _parseNoCache
loc, tokens = self.parseImpl(instring, preloc, doActions)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4003, in parseImpl
return e._parse(
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 824, in _parseNoCache
tokens = fn(instring, tokensStart, retTokens)
File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 282, in wrapper
ret = func(*args[limit:])
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bparser.py", line 187, in <lambda>
lambda s, l, t: self._add_entry(
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bparser.py", line 277, in _add_entry
d[self._clean_field_key(key)] = self._clean_val(fields[key])
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bparser.py", line 228, in _clean_val
return as_text(val)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 270, in as_text
return text_string_or_expression.get_value()
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 231, in get_value
return ''.join([BibDataString.expand_string(s) for s in self.expr])
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 231, in <listcomp>
return ''.join([BibDataString.expand_string(s) for s in self.expr])
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 197, in expand_string
return string_or_bibdatastring.get_value()
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 178, in get_value
return self._bibdatabase.expand_string(self.name)
File "/home/japhir/.local/lib/python3.10/site-packages/bibtexparser/bibdatabase.py", line 109, in expand_string
raise(UndefinedString(name))
bibtexparser.bibdatabase.UndefinedString: 'aug'