calibredb catalog fails on sort_key - KeyError: 'id'

Bug #1216090 reported by Richie Adler on 2013-08-23
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

A previously working catalog instruction

> calibredb catalog axxon.csv --fields id -s series_index:=111 H:\MARCELO\work\Axxon\EPUB

fails as follows:

Python function terminated unexpectedly
  'id' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  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'

Running Calibre 1.0.0 on Windows 7 SP 1 build 7601

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers