View Single Post
Old 09-25-2016, 01:58 PM   #277
richo
Connoisseur
richo began at the beginning.
 
richo's Avatar
 
Posts: 68
Karma: 10
Join Date: Sep 2014
Device: KOReader on: Kindle Paperwhite and Android
It is a while I can not use your plugin. It always throes error. I suspect there is some kind of issue in its DB or Calibre DB.

I would appreciate if you could help me to find it and solve it.
The error is always same. It demonstrates always at File "calibre_plugins.annotations.annotations_db", line 241, in capture_content. It is triggered either when adding annotations into calibre:

Code:
calibre, version 2.68.0
Error fetching annotations: <p>Unable to fetch annotations from Amazon Kindle.</p>

Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 289, in fetch_device_annotations
  File "calibre_plugins.annotations.action", line 994, in process_selected_books
  File "calibre_plugins.annotations.action", line 146, in add_annotations_to_calibre
  File "calibre_plugins.annotations.annotations", line 251, in merge_annotations
  File "calibre_plugins.annotations.annotations_db", line 241, in capture_content
TypeError: 'NoneType' object has no attribute '__getitem__'
or in customize plugin when moving from one column to other :

Code:
calibre 2.68 Portable embedded-python: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM (6, 2, 0) && Reading List (1, 6, 6) && Find Duplicates (1, 6, 2) && iOS reader applications (1, 4, 7, 0, 0) && Annotations (1, 4, 11) && Marvin XD (1, 2, 4) && Kindle Collections (1, 7, 17)
Traceback (most recent call last):
  File "calibre_plugins.annotations.config", line 409, in launch_cc_wizard
  File "calibre_plugins.annotations.config", line 372, in _update_combo_box
  File "calibre_plugins.annotations.config", line 251, in annotations_destination_changed
  File "calibre_plugins.annotations.common_utils", line 1009, in move_annotations
  File "calibre_plugins.annotations.annotations_db", line 241, in capture_content
TypeError: 'NoneType' object has no attribute '__getitem__'
I looked at the code and the line 241 is:

Code:
this_ua.highlight_color = ua.find('table')['color']
I do not know enough about python to understand this fully. Maybe @davidfor can help?
richo is offline   Reply With Quote