commandline calibredb catalog not working with xml export

Bug #1216317 reported by Simon Latapie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
New
Undecided
Unassigned

Bug Description

Calibre version : 1.0.0
OS : linux (Ubuntu 13.04)

On version 1.0.0, calibredb catalog command seams to be broken when asking for xml or csv export format.

# calibredb catalog /tmp/books.xml --dont-notify-gui --library-path=/my/library/path
Traceback (most recent call last):
  File "site.py", line 58, in main
  File "site-packages/calibre/library/cli.py", line 1470, in main
  File "site-packages/calibre/library/cli.py", line 880, in command_catalog
  File "site-packages/calibre/library/catalogs/csv_xml.py", line 87, in run
  File "site-packages/calibre/customize/__init__.py", line 466, in search_sort_db
  File "site-packages/calibre/db/legacy.py", line 312, in sort
  File "site-packages/calibre/db/view.py", line 231, in multisort
  File "site-packages/calibre/db/cache.py", line 55, in ans
  File "site-packages/calibre/db/cache.py", line 831, in multisort
  File "site-packages/calibre/db/cache.py", line 831, in <genexpr>
  File "site-packages/calibre/db/cache.py", line 823, in sort_key
KeyError: 'id'

The exact same commandline works on earlier versions (at least every 0.9.X)

Tags: catalogs
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1216317

Duplicate of #1216090

    duplicate 1216090

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.