View Single Post
Old 04-28-2019, 09:25 AM   #1836
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 Sunlite View Post
There are both files: device_drivers_KOBOTOUCHEXTENDED.py.json and device_drivers_KOBOTOUCHEXTENDED.py.

I attached the json and the py file zipped up to this post.

Deleting the line with "file_copy_dir" did not change anything.

The file device_drivers_KOBOTOUCHEXTENDED.py does not contain the string 'lang', so I could not remove that.

I started Calibre after deleting the json file and the file was recreated with the same content again. The issue was still there.

The I removed both files and after restarting Calibre I was able to reach the preferences for the plugin, but as you said all preferences were gone.
Looking at the contents of "device_drivers_KOBOTOUCHEXTENDED.py", it has been a very long time since you changed the configuration of the driver. The version of the file I was looking at was relatively recent. It looks like the config migration code I wrote a long time ago still has problems. I think we are going to have to go with deleting these files and recreating the configuration when the "file_copy_dir" problem is seen.

For the error saving the configuration, I have attached a version of the plugin that catches this error and saves the configuration properly.
Attached Files
File Type: zip KoboTouchExtended.zip (30.1 KB, 163 views)
davidfor is offline   Reply With Quote