calibredb catalog fails on sort_key - KeyError: 'id'

Bug #1216090 reported by Marcelo Huerta
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
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

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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