View Single Post
Old 08-16-2014, 03:18 AM   #106
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
Last night when I connected my Glo, it didn't run the jobs my utilities plugin creates. And then I realised it wasn't populating the "ondevice" column. A little bit of fiddling with the source gave me:

Code:
  File "D:\Development\GitHub\calibre\src\calibre\gui2\library\views.py", line 566, in apply_state
ValueError: 'ondevice' is not in list
This happens the first time I connect the device after starting calibre. If I eject and connect again, the "ondevice" column is populated, but the above error still happens and the plugin device jobs don't get run.

And looking at git, I can see a change that added the line in error. When I change libraries after the first connect, the "ondevice" column is populated and everything else seems to work correctly.
davidfor is offline   Reply With Quote