View Single Post
Old 11-03-2014, 08:37 AM   #98
Aldous04
Junior Member
Aldous04 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2014
Device: Kindle PW, Marvin for iOS
Quote:
Originally Posted by davidfor View Post
Yes, that's the same error.


You can run calibre in debug mode in two ways. One is from inside calibre. You right click on the preferences button in calibre and select "Restart in debug mode". Calibre will restart and display a message about a log file. When you close calibre, it will display the log file to you. The other way to do this is to run the command "calibre-debug -g" from the command line. That will display the messages in the command window while calibre is running. This will only display the last few messages depending on how big the window is.

But, before doing either of these, open the annotations configuration and select "Enable debug logging for Annotations plugin". This will write extra messages from the plugin to the debug log. The version of the plugin I posted recently has some extra logging to show the file name of the book that is causing this error.
OK, here is the log produced when I run in debugging mode:
Spoiler:
calibre Debug log
calibre 2.7 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Kindle and Mobipocket DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && Annotations && iOS reader applications && Marvin XD && Inept PDF DeDRM
Starting up...
DEBUG: 0.0 ~~~~~~~~~~~~~~~~~~~~~~ Annotations plugin 1.4.3 (Windows) ~~~~~~~~~~~~~~~~~~~~~~
DEBUG: 0.0 libiMobileDevice:__init__()
DEBUG: 0.0 libiMobileDevice:load_library(Windows)
DEBUG: 0.0 libimobiledevice loaded from 'libimobiledevice.dll'
DEBUG: 0.0 libplist loaded from 'libplist.dll'
DEBUG: 0.0 AnnotationsAction:init_options(disable_caching: False)
DEBUG: 0.0 AnnotationsDB:connect(db_version: 1)
DEBUG: 0.0 AnnotationsAction:load_dynamic_reader_classes()
DEBUG: 0.0 loading built-in class 'GoodReader'
DEBUG: 0.0 loading built-in class 'Kindle'
DEBUG: 0.0 loading built-in class 'KoboTouch'
DEBUG: 0.0 loading built-in class 'ParseKindleMyClippingsTxt'
DEBUG: 0.0 AnnotationsAction:inflate_dialog_resources()
DEBUG: 0.0 CompileUI:compile_ui()
DEBUG: 0.1 recompiling C:\Users\Aldous\AppData\Roaming\calibre\plugins\an notations_resources\dialogs\cc_wizard.ui
DEBUG: 0.1 recompiling C:\Users\Aldous\AppData\Roaming\calibre\plugins\an notations_resources\dialogs\new_destination.ui
DEBUG: 22.0 AnnotationsActionn_device_connection_changed(Ama zon Kindle)
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Set library information started
DeviceJob: 2 Set library information done, calling callback
DeviceJob: 2 Set library information callback returned
Job: 3 Get list of books on device started
DEBUG: 22.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 22.2 USBMS: dirs are: H:\ documents
DEBUG: 22.5 USBMS: scan from root False H:\documents
Job: 2 Set library information finished
No details available.
Job: 1 Get device information finished
No details available.
DEBUG: 23.0 USBMS: count found in cache: 42, count of files in metadata: 42, need_sync: False
DEBUG: 23.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 23.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 23.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 3 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 42
DeviceJob: set_books_in_library finished: time= 0.00399994850159
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Get list of books on device callback returned
Job: 3 Get list of books on device finished
No details available.
Started up in 34.52 seconds with 933 books
DEBUG: 52.7 AnnotationsAction:launch_library_scanner(updating library index)
DEBUG: 53.8 AnnotationsAction:get_annotated_books_on_usb_devic e()
DEBUG: 53.8 Kindle:get_installed_books()
DEBUG: 58.5 AnnotationsAction:library_index_complete()
Job: 3 Get list of books on device finished
No details available.
DEBUG: 58.5 Book on device title: The Story of Civilization, Volume III: Caesar and Christ
DEBUG: 58.6 Book on device title: The Road Less Traveled
DEBUG: 58.6 Book on device title: The Sea and the Jungle
DEBUG: 58.6 Book on device title: Vile Bodies
DEBUG: 58.6 Book on device title: Black Mischief
DEBUG: 58.6 Book on device title: Scoop
DEBUG: 58.6 Book on device title: Brideshead Revisited
DEBUG: 58.7 Book on device title: Chartism
DEBUG: 58.7 Book on device title: Eros and Civilization
DEBUG: 58.7 Book on device title: The Natural History of Selborne
DEBUG: 58.7 Book on device title: The Open Society and Its Enemies
DEBUG: 58.8 Book on device title: The Story of Civilization, Volume II: The Life of Greece
DEBUG: 58.8 Book on device title: How to Develop a Brilliant Memory Week by Week
calibre 2.7 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Kindle and Mobipocket DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && Annotations && iOS reader applications && Marvin XD && Inept PDF DeDRM
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 333, in fetch_usb_device_annotations
File "calibre_plugins.annotations.action", line 522, in get_annotated_books_on_usb_device
File "c:\users\alex\appdata\local\temp\calibre_annotati ons_plugin\Kindle.py", line 168, in get_installed_books
File "c:\users\alex\appdata\local\temp\calibre_annotati ons_plugin\Kindle.py", line 264, in _get_metadata
File "site-packages\calibre\ebooks\metadata\mobi.py", line 493, in get_metadata
File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 273, in __init__
File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 301, in identity
MobiError: Unknown book type: cÌÆ}ÝÝ›Å

DEBUG: 67.1 AnnotationsAction:shutting_down()

Unfortunately the version you uploaded on the previous page doesn't seem to provide any additional information:
Spoiler:

C:\Users\Aldous\Desktop\annotations_kindle_test>ca libre-customize -a "..\Annotations.zip"
Python function terminated unexpectedly
Cannot access u'..\\Annotations.zip' (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\customize\ui.py", line 659, in main
File "site-packages\calibre\customize\ui.py", line 379, in add_plugin
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 185, in load
calibre.customize.PluginNotFound: Cannot access u'..\\Annotations.zip'

C:\Users\Aldous\Desktop\annotations_kindle_test>re m SET CALIBRE_DEVELOP_FROM=D:\Development\GitHub\calibre \src

C:\Users\Aldous\Desktop\annotations_kindle_test>ca libre-debug -s
No running calibre found

C:\Users\Aldous\Desktop\annotations_kindle_test>ca libre-debug -g
calibre 2.7 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Kindle and Mobipocket DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && iOS reader appl
ications && Inept PDF DeDRM && Annotations && Marvin XD
Starting up...
DEBUG: 0.0 ~~~~~~~~~~~~~~~~~~~~~~ Annotations plugin 1.4.3 (Windows) ~~~~~~~~~~~~~~~~~~~~~~
DEBUG: 0.0 libiMobileDevice:__init__()
DEBUG: 0.0 libiMobileDevice:load_library(Windows)
DEBUG: 0.0 libimobiledevice loaded from 'libimobiledevice.dll'
DEBUG: 0.0 libplist loaded from 'libplist.dll'
DEBUG: 0.0 AnnotationsAction:init_options(disable_caching: False)
DEBUG: 0.0 AnnotationsDB:connect(db_version: 1)
DEBUG: 0.0 AnnotationsAction:load_dynamic_reader_classes()
DEBUG: 0.0 loading built-in class 'GoodReader'
DEBUG: 0.0 loading built-in class 'Kindle'
DEBUG: 0.0 loading built-in class 'KoboTouch'
DEBUG: 0.0 loading built-in class 'ParseKindleMyClippingsTxt'
DEBUG: 0.0 AnnotationsAction:inflate_dialog_resources()
DEBUG: 0.0 CompileUI:compile_ui()
DEBUG: 0.1 recompiling C:\Users\Aldous\AppData\Roaming\calibre\plugins\an notations_resources\dialogs\cc_wizard.ui
DEBUG: 0.1 recompiling C:\Users\Aldous\AppData\Roaming\calibre\plugins\an notations_resources\dialogs\new_destination.ui
Started up in 1.63 seconds with 933 books
DEBUG: 22.0 AnnotationsActionn_device_connection_changed(Ama zon Kindle)
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Set library information started
DeviceJob: 2 Set library information done, calling callback
DeviceJob: 2 Set library information callback returned
Job: 3 Get list of books on device started
DEBUG: 22.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 22.3 USBMS: dirs are: H:\ documents
DEBUG: 22.5 USBMS: scan from root False H:\documents
Job: 1 Get device information finished
No details available.
Job: 2 Set library information finished
No details available.
DEBUG: 23.0 USBMS: count found in cache: 42, count of files in metadata: 42, need_sync: False
DEBUG: 23.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 23.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 23.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 3 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 42
DeviceJob: set_books_in_library finished: time= 0.00399994850159
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Get list of books on device callback returned
Job: 3 Get list of books on device finished
No details available.
DEBUG: 31.5 AnnotationsAction:launch_library_scanner(updating library index)
DEBUG: 32.1 AnnotationsAction:library_index_complete()
DEBUG: 32.9 AnnotationsAction:launch_library_scanner(library index current)
DEBUG: 34.4 AnnotationsAction:get_annotated_books_on_usb_devic e()
DEBUG: 34.4 Kindle:get_installed_books()
Job: 3 Get list of books on device finished
No details available.
DEBUG: 38.4 Book on device title: The Story of Civilization, Volume III: Caesar and Christ
DEBUG: 38.5 Book on device title: The Road Less Traveled
DEBUG: 38.5 Book on device title: The Sea and the Jungle
DEBUG: 38.5 Book on device title: Vile Bodies
DEBUG: 38.5 Book on device title: Black Mischief
DEBUG: 38.5 Book on device title: Scoop
DEBUG: 38.6 Book on device title: Brideshead Revisited
DEBUG: 38.6 Book on device title: Chartism
DEBUG: 38.6 Book on device title: Eros and Civilization
DEBUG: 38.6 Book on device title: The Natural History of Selborne
DEBUG: 38.7 Book on device title: The Open Society and Its Enemies
DEBUG: 38.7 Book on device title: The Story of Civilization, Volume II: The Life of Greece
DEBUG: 38.7 Book on device title: How to Develop a Brilliant Memory Week by Week
calibre 2.7 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Kindle and Mobipocket DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && iOS reader appl
ications && Inept PDF DeDRM && Annotations && Marvin XD
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 333, in fetch_usb_device_annotations
File "calibre_plugins.annotations.action", line 522, in get_annotated_books_on_usb_device
File "c:\users\Aldous\appdata\local\temp\calibre_annota tions_plugin\Kindle.py", line 168, in get_installed_books
File "c:\users\Aldous\appdata\local\temp\calibre_annota tions_plugin\Kindle.py", line 264, in _get_metadata
File "site-packages\calibre\ebooks\metadata\mobi.py", line 493, in get_metadata
File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 273, in __init__
File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 301, in identity
MobiError: Unknown book type: cÌÆ}ÝÝ›Å
Aldous04 is offline   Reply With Quote