View Single Post
Old 09-05-2017, 07:16 AM   #1364
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 glasnost View Post
You were spot on. For some reason, Calibre was remembering an old device. Thank you!

So, obviously, rather than going with your simple suggestion, I decided to set the profile to *Any AND delete the old device from the device list. But, I couldn't remember the SN, so I figured I'd just delete both.

NO. That caused all sorts of exceptions, as the python scripts tried to call nul data (i.e. the device list was empty.) I couldn't even open the plugin configuration. But automagically, my reading position was added & shelves sorted on goodreads. (b/c I had set the profile to *any). I removed the plugin, restarted, added back in the plugin, restarted.

Still couldn't open plugin configuration!
You didn't happen to record the details of the error? That would help to look at it.
Quote:
This is when I learned that removing the plugin from Calibre does not remove the file: "Kobo Utilities.json" or "KoboUtilities_Help.html"

I deleted them, removed/added the plugin, opened config, a new .json config file was generated, and everything worked like a charm.

Suggestions:
1. Default plugin configuration profile to Any* ? Multiple, unique device config seems like it would be the exception.
As there is no way to use the store function without configuring it, I don't think that will help much.
Quote:
2. remove the config file when removing the plugin. This probably requires changes to calibre plugin handling code, but if it can be done on your side, that'd be awesome!
It can't be done. Nothing in the plugin is called when the plugin is uninstalled. It's been suggested before but Kovid hasn't wanted to do it. And, personally, I uninstall and reinstall the various plugins enough that I don't want the configuration removed. Once I fix the problem you are seeing, it won't matter as much.
davidfor is offline