Package: xapers
Version: 0.8.2-1.1
Severity: normal

Using --file sometimes fails hard, even when the --source is supplied
that points to a source that knows how to pull files.

For example:

0 dkg@alice:~$ xapers add --source=arxiv:1809.00623 --file
Source 'arxiv:1809.00623' found in database.  Updating existing document...
Retrieving bibtex... done.
Retrieving file... Traceback (most recent call last):
  File "/usr/bin/xapers", line 11, in <module>
    load_entry_point('xapers==0.8.2', 'console_scripts', 'xapers')()
  File "/usr/lib/python3/dist-packages/xapers/__main__.py", line 188, in main
    docid = cli.add(db, query, infile=infile, sid=sid, tags=tags, prompt=prompt)
  File "/usr/lib/python3/dist-packages/xapers/cli.py", line 233, in add
    file_name, file_data = source.fetch_file()
  File "/usr/lib/python3/dist-packages/xapers/source.py", line 153, in 
fetch_file
    return super(SourceItem, self).fetch_file(self.id)
  File "/usr/lib/python3/dist-packages/xapers/source.py", line 113, in 
fetch_file
    return func(id)
TypeError: 'tuple' object is not callable
1 dkg@alice:~$ 

Thanks for maintaining xapers!

       --dkg



-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 
'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xapers depends on:
ii  poppler-utils          0.71.0-2
ii  python3                3.7.2-1
ii  python3-pkg-resources  40.7.1-1
ii  python3-pybtex         0.21-2
ii  python3-xapian         1.4.9-1

Versions of packages xapers recommends:
ii  python3-pycurl  7.43.0.2-0.1
ii  python3-urwid   2.0.1-2+b1
ii  xclip           0.13-1
ii  xdg-utils       1.1.3-1

xapers suggests no packages.

-- no debconf information

Reply via email to