View Single Post
Old 06-27-2016, 11:42 AM   #881
excaliber
Connoisseur
excaliber began at the beginning.
 
excaliber's Avatar
 
Posts: 59
Karma: 10
Join Date: Nov 2013
Device: Samsung Galaxy Tab 2 10.1 P5110
Hi all,

When I use this plugin I'm getting some times following error:

calibre, version 2.60.0
ERROR: Unhandled exception: <b>TypeError</b>bject of type 'NoneType' has no len()

calibre 2.60 embedded-python: True is64bit: True
Linux-4.4.0-22-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '4.4.0-22-generic', '#40~14.04.1-Ubuntu SMP Fri May 13 17:27:45 UTC 2016')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Save To Format (0, 0, 6) && Walk Search History (1, 3, 1) && Count Pages (1, 6, 9) && Wiki Reader (2, 1, 0) && Open With (1, 5, 9) && Get DJVU Metadata (1, 2, 0) && Author Book Count Hierarchy (1, 1, 6) && Favourites Menu (1, 0, 4) && Generate Cover (1, 5, 19) && Consolidate All Library Metadata (2, 0, 19) && Search The Internet (1, 7, 6) && Reading List (1, 6, 6) && Find Duplicates (1, 6, 2) && Zotero Metadata Importer (1, 0, 7) && Astro-ph (1, 1, 0) && English Noun Frequency (1, 0, 6) && Import List (1, 1, 5) && Clean Metadata (0, 0, 6) && Library Codes (1, 0, 27) && Job Spy (1, 0, 50) && Manage Series (1, 2, 8) && Google Scholar (0, 1, 1) && Annotations (1, 4, 7) && MultiColumnSearch (1, 0, 64) && User Category (1, 5, 3) && Quick Preferences (1, 4, 1) && Diaps Editing Toolbag (0, 3, 1) && Quality Check (1, 9, 11) && View Manager (1, 3, 2) && Goodreads (1, 1, 11) && Extract ISBN (1, 4, 4) && BOL_DE (0, 7, 2) && Drop Search Results (1, 0, 5) && Author Book Count (2, 1, 4) && Recoll Full Text Search (1, 0, 1) && Get PDF Metadata (1, 2, 0)
Traceback (most recent call last):
File "site-packages/calibre/gui2/__init__.py", line 418, in dispatch
File "calibre_plugins.count_pages.action", line 211, in _get_statistics_completed
TypeError: object of type 'NoneType' has no len()


I run the plugin for some hundred files. It starts normally but when it reaches 100% is throwing out the above error without updating the pages column and I cannot figure out if it's because of a particular file and if so which file is causing it.

Any ideas?
excaliber is offline   Reply With Quote