View Single Post
Old 12-17-2014, 09:07 PM   #774
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by eXistenZ View Post
Thank you to all people that relpied to help

About Shelves: No I use Smart Shelves but I'm aware of Calibre problems with them, so I disabled all the shelves options in Kobo touch Extended driver a long time ago.
Which is what I thought. But, I suspect that a copy of the smart shelves was synced to the server. And that is why you got the duplicate. My thought was that when you first started using smart shelves that you connected to calibre once with shelf management still setup and then synced to Kobo. That would explain what happened.
Quote:
Also I use Smart Shelves from months, and the duplicates appeared only recently, so calibre is not involved in the issue, I was only asking davidfor for a tool to manually managing shelves entry in the DB. I solved editing the DB in a SQLite editor. It was easier than expected

About the error message, I'm not sure this is realted to tne new firmware, new Calibre, new plug-in version or something else, I posted the error message hoping it was useful, because I'm not capable of understanding it.
@Davidfor: I tryed debug mode and here it is the result:
I can see several things in this log. I'll trim it and make the comments.
Quote:
Code:
Traceback (most recent call last):
  File "site-packages/calibre/customize/ui.py", line 590, in initialize_plugins
  File "site-packages/calibre/customize/ui.py", line 557, in initialize_plugin
InvalidPlugin: Inizializzazione del plugin Traceback (most recent call last):
  File "site-packages/calibre/customize/ui.py", line 551, in initialize_plugin
  File "calibre_plugins.dedrm.__init__", line 86, in initialize
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.dedrm.config", line 12, in <module>
ImportError: No module named PyQt4.Qt
 non riuscita con messaggio:
Traceback (most recent call last):
  File "site-packages/calibre/customize/ui.py", line 551, in initialize_plugin
  File "calibre_plugins.dedrm.__init__", line 86, in initialize
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.dedrm.config", line 12, in <module>
ImportError: No module named PyQt4.Qt
You have old versions of the plugins from Apprentice Alf. They should be removed or replace. This won't cause any problem other than they won't work.
Quote:
Code:
2014-12-17 17:34:01.633 Calibre[5724:507] deliverNotificationWithTitle()
* Notification delivered.
Traceback (most recent call last):
  File "site-packages/calibre/devices/kobo/driver.py", line 1603, in update_booklist
  File "site-packages/calibre/devices/kobo/driver.py", line 718, in book_from_path
  File "site-packages/calibre/devices/kobo/books.py", line 27, in __init__
  File "site-packages/calibre/devices/usbms/books.py", line 39, in __init__
  File "site-packages/calibre/ebooks/metadata/book/base.py", line 786, in __nonzero__
  File "site-packages/calibre/ebooks/metadata/book/base.py", line 149, in __getattribute__
AttributeError: Metadata object has no attribute named: 'author'

Started up in 17.78 seconds with 3868 books
DEBUG:  312.6 KoboUtilities:_on_device_connection_changed - self.plugin_device_connection_changed.__class__:  <type 'PyQt5.QtCore.pyqtBoundSignal'>
DEBUG:  312.6 Methods for self.plugin_device_connection_changed:  ['__call__', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__getitem__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'connect', 'disconnect', 'emit', 'signal']
Job: 1 Recupera informazioni sul dispositivo started
DeviceJob: 1 Recupera informazioni sul dispositivo done, calling callback
DeviceJob: 1 Recupera informazioni sul dispositivo callback returned
Job: 2 Imposta informazioni sulla biblioteca started
DeviceJob: 2 Imposta informazioni sulla biblioteca done, calling callback
DeviceJob: 2 Imposta informazioni sulla biblioteca callback returned
Job: 3 Recupera la lista dei libri del dispositivo started
DEBUG:    0.0 KoboTouch:books - oncard='None'
DEBUG:    0.0 KoboTouch:books - oncard='None', prefix='/Volumes/KOBOeReader/'
DEBUG:    0.0 Kobo device: Kobo Aura HD
DEBUG:    0.0 Version of driver: (2, 2, 20) Has kepubs: True
DEBUG:    0.0 Version of firmware: (3, 12, 0) Has kepubs: True
DEBUG:    0.0 Firmware supports cover image tree: True
DEBUG:    0.0 KoboTouch:books - opts.extra_customization= [u'#scaffale, #collana', True, True, True, True, True, True, False, True, True, False, True, u'', True, False, True, True, True, True, False, u'', False]
DEBUG:    0.0 KoboTouch:books - prefs['manage_device_metadata']= manual
DEBUG:    0.0 KoboTouch:books - set_debugging_title to ''
DEBUG:    0.0 KoboTouch:books - length bl=0
Job: 2 Imposta informazioni sulla biblioteca finished
Nessun dettaglio disponibile.
Job: 1 Recupera informazioni sul dispositivo finished
Nessun dettaglio disponibile.
DEBUG:    5.4 KoboTouch:books - length bl after sync=1793
DEBUG:    5.4 KoboTouch:books - reading device database
DEBUG:    5.5 Database Version=111
DEBUG:    5.5 KoboTouch:books - shelf list: []
DEBUG:    5.5 KoboTouch:books - query= SELECT Title, Attribution, DateCreated, ContentID, MimeType, ContentType, ImageID, ReadStatus, ___ExpirationStatus, FavouritesIndex, Accessibility, IsDownloaded, Series, SeriesNumber, ___UserID, ExternalId FROM content  where BookID is Null  and ((Accessibility = -1 and IsDownloaded in ('true', 1 )) or (Accessibility in (1,2) )       or (Accessibility in (-1, 4, 6) and ___UserId = '') ) and not ((___ExpirationStatus=3 or ___ExpirationStatus is Null) and ContentType = 6) AND (externalId IS NULL OR externalId = '') AND contentId NOT LIKE 'file:///mnt/sd/%'
DEBUG:   20.2 KoboTouch:update_booklist - exception creating book: 'Metadata object has no attribute named: 'author''
DEBUG:   20.2         prefix:  /Volumes/KOBOeReader/ lpath:   title:  Tvtti i trionfi, carri, mascheaate ò canti carnascialeschi andati per Firenze, dal te[m]po del… authors:  Anton Francesco Grazzini,Anton Francesco Grazzini,Medici, Lorenzo de'. Trionfo di Bacco, e Darianna mime:  application/octet-stream date:  2010-01-02T03:36:57.001 ContentType:  6 ImageID:  AAAAAAAAAAAAAAAAAAAAAA
I think this, and the traceback, above is the real problem. The error says the book doesn't have an author, but I think the issue is that the "lpath" is empty. The lpath should be the path and file name on the device of the file. It shouldn't be empty as this comes from the database on the device and is the key used there and to find the file when reading. I can't think of how that could happen.
Quote:

Anyway I noticed something related to this issue:
1) I have KoboTools on the contextual menu, but when I select it from there no submenu appears.
2) I Have also KoboTools in the menu bar, also from there I noticed strange behaviours, when I am in the Calibre Main library (Kobo connected of course) all the entries in KoboTools menu are greyed.
If I move to the reader's memory all the entries in KoboTools menu activates, after that they remain active also if I return to the Calibre Library.
3) the "AttributeError: 'KTCollectionsBookList' object has no attribute 'id'" happens only if I select books in the main kobo memory, and then try to use kobo tool

I hope what I wrote is clear enough, my english is far away from beeing perfect

Anyway I'm starting to think to a rude solution, totally deleting Calibre and it's preferences, then reistalling it and plugins from scratch, the only problem is I use Calibre from Years, I dont'know if I'm capable of comfiguring it again in all it's parts
The rest of this is explainable by the earlier error. Or at least it needs to be fixed before looking at these problems.

I don't understand how this could happen. Can I get a copy of the database? Hopefully I can work it out from that. The best way to do this is to put it somewhere I can download it and PM me the link. Or PM me for an email address to send it to.

Edit:

Another way to get the information is to put something in the "Title to test when debugging" field of the driver configuration. If you enter the first part of the title of the book, and run in debug mode, a lot of extra information is written. That should tell me a lot about what is happening. From your log, using "Tvtti" should be enough.

Last edited by davidfor; 12-18-2014 at 02:25 AM.
davidfor is offline