Closed stasvlasov closed 1 year ago
Looks like a bibtex parser choking on the badly written bibfile (which is probably separate from papis
judging which python script was throwing the exception, bibtexparser
in this case).
My suggestion is to inspect the bibfile you have made from your zotero library and find the bib items with the keywords oct
and may
(as seen in the traceback) and remove or fix them and try importing the resulting bibtex again.
If errors persists with bibtexparser.bibdatabase.UndefinedString:
with different terms you will have to repeatly remove or fix items whichwill be too much work. Then you may need to import selectively a group of items at a time and noting which group encounters an error.
Other option is to use a bibtex validator tool to check the bibfile (plenty of options online like bibchecker). Other way is using latex tools to create a pdf document with \nocite{*}
and \bibliography{}
in main document body to reveal any errors with bibtex file. See the method in this stackoverflow answer.
I started using papis today and do note the same issues with zotero import.
Further investigations have shown that the error is due to the month field and is a flaw in bibtexparser
not with papis or bibtex files. Please see the issue here.
It appears that the solution to this issue is probably fixed by this commit https://github.com/papis/papis/commit/eb9491a3495c1b34ff819cedf515b38d908cf957 which have not been released yet.
@DancingQuanta is right, this has been fixed in v0.9
, unfortunately I haven't released it yet,
it is coming soon though.
As a fix I would erase all lines of you bib file with month, since the month = oct
expects a definition
of the string oct
, which is not present in your bibtex file, either this or you could also add definitions
of oct on top of your bibfile, it should work then, in principle if you add
@string{ oct = "October" }
and accordingly for other months.
Sorry for the delay in the answer.
Hopefully this was actually fixed in papis 0.9. Feel free to reopen if it's still an issue!
I installed
papis-zotero==0.0.3
from pip. Exported zotero library to bibtex (lib.bib
with valid links to files). Then I am tried the following:And got lot of errors. I tried it both on Ubuntu and on MacOS. Strange but, errors seem different.
Any ideas how to get desired result?
Ubuntu 18.04:
MacOS 10.13.6