pybtex-format not working
Issue #137
new
Running on Python 3.8.2, Fedora 32.
pybtex installed using pip install --user pybtex
.
When running pybtex-format literature.bib literature.txt
, the error below appears:
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/style/formatting/__init__.py", line 67, in format_entry
get_template = getattr(self, 'get_{}_template'.format(entry.type))
AttributeError: 'Style' object has no attribute 'get_online_template'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tom/.local/bin/pybtex-format", line 8, in <module>
sys.exit(main())
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/cmdline.py", line 181, in __call__
self.main()
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/cmdline.py", line 245, in main
self.run(*args, **kwargs)
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/database/format/__main__.py", line 73, in run
format_database(
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/database/format/__init__.py", line 57, in format_database
formatted_bibliography = style.format_bibliography(bib_data)
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/style/formatting/__init__.py", line 89, in format_bibliography
formatted_bibliography = FormattedBibliography(formatted_entries, style=self, preamble=bib_data.preamble)
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/style/__init__.py", line 39, in __init__
self.entries = list(entries)
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/style/formatting/__init__.py", line 58, in format_entries
yield self.format_entry(label, entry, bib_data=bib_data)
File "/home/tom/.local/lib/python3.8/site-packages/pybtex/style/formatting/__init__.py", line 69, in format_entry
format_method = getattr(self, "format_" + entry.type)
AttributeError: 'Style' object has no attribute 'format_online'