tag 819088 confirmed patch
thanks

On Wed, Mar 23 2016, Daniel Kahn Gillmor <[email protected]> wrote:
> I just upgraded from pybtex 0.18-1 to 0.19-1
>
> now, when i try to "xapers add --file=foo.pdf", i get:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
>     mod_name, _Error)
>   File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
>     __import__(mod_name)  # Do not catch exceptions initializing package
>   File "/usr/lib/python2.7/dist-packages/xapers/__init__.py", line 21, in 
> <module>
>     from database import Database
>   File "/usr/lib/python2.7/dist-packages/xapers/database.py", line 26, in 
> <module>
>     from documents import Documents, Document
>   File "/usr/lib/python2.7/dist-packages/xapers/documents.py", line 27, in 
> <module>
>     from bibtex import Bibtex
>   File "/usr/lib/python2.7/dist-packages/xapers/bibtex.py", line 6, in 
> <module>
>     from pybtex.core import Entry, Person
> ImportError: No module named core

It looks like pybtex moved some things around.  The attached patch seems
to fix the problem.  I'll try to push out a new release soon, but it
won't happen until next week at the earliest.

jamie.

diff --git a/lib/xapers/bibtex.py b/lib/xapers/bibtex.py
index c2a9eda..a2e1309 100644
--- a/lib/xapers/bibtex.py
+++ b/lib/xapers/bibtex.py
@@ -23,8 +23,8 @@ import sys
 import io
 import json
 import pybtex
-from pybtex.core import Entry, Person
 from pybtex.bibtex.utils import split_name_list
+from pybtex.database import Entry, Person
 from pybtex.database.input import bibtex as inparser
 from pybtex.database.output import bibtex as outparser
 

Attachment: signature.asc
Description: PGP signature

Reply via email to