calibredb catalog .xml fails since upgrade to 1.0

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

Bug Description

$ calibredb catalog .xml
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 same of course happens if I do

$ calibredb catalog .xml --sort-by=id

(which is still mentioned in calibredb catalog .xml --help_)

--sort-by=timestamp works and seems to contain <id> as one of the fields.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1216506

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.