Search generating unhandled exception error

Bug #1311559 reported by Stephen Dawson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Expired
Undecided
Unassigned

Bug Description

In Calibre 64-bit version 1.33 on Windows 7, some searches are generating errors:

ERROR: Unhandled exception
TypeError: 'int' object is not iterable

To reproduce:

Open Calibre
Type "Aubrey" (without quotes) in the Search box
Press Enter
error message is displayed

I think that the error is being generated when anything is searched for without a prefix. For instance, "Series:Aubrey" works fine, as does "Author:Aubrey", but "Aubrey" on its own generates the error. Limited testing suggests the error occurs regardless of the search word or phrase used.

calibre, version 1.33.0
ERROR: Unhandled exception: <b>TypeError</b>:'int' object is not iterable

calibre 1.33 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\library\views.py", line 1029, in search_proxy
  File "site-packages\calibre\gui2\library\models.py", line 420, in search
  File "site-packages\calibre\db\view.py", line 269, in search
  File "site-packages\calibre\db\view.py", line 304, in search_getting_ids
  File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 891, in search
  File "site-packages\calibre\db\search.py", line 848, in __call__
  File "site-packages\calibre\db\search.py", line 885, in _do_search
  File "site-packages\calibre\db\search.py", line 477, in parse
  File "site-packages\calibre\utils\search_query_parser.py", line 327, in parse
  File "site-packages\calibre\utils\search_query_parser.py", line 348, in _parse
  File "site-packages\calibre\utils\search_query_parser.py", line 356, in evaluate
  File "site-packages\calibre\utils\search_query_parser.py", line 399, in evaluate_token
  File "site-packages\calibre\utils\search_query_parser.py", line 403, in _get_matches
  File "site-packages\calibre\db\search.py", line 684, in get_matches
  File "site-packages\calibre\db\search.py", line 53, in _match
TypeError: 'int' object is not iterable

description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1311559

Attach the file metadata.db from your calibre library folder.

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for calibre because there has been no activity for 60 days.]

Changed in calibre:
status: Incomplete → Expired
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.