First of all, I'm sorry for your troubles. Unfortunately, I can't reproduce either of them at all on either Linux or Mac OS X.
So, for the "database disk image is malformed" issue. The debug logs were very useful:
Code:
DEBUG: 4.3 src: u'/Library/mainDb.sqlite'
DEBUG: 4.3 dst: /var/folders/x7/94fnxx_91nl3m6wtrll3_qnr0000gn/T/calibre_2.1.0_tmp_arhgnW/T_eZpI_ios_local_db/mainDb.sqlite
The plugin copies Marvin's database to a local directory and then tries to read from it which fails:
Code:
File "/var/folders/x7/94fnxx_91nl3m6wtrll3_qnr0000gn/T/calibre_2.1.0_tmp_arhgnW/T_eZpI_ios_local_db/Marvin_overlays.py", line 301, in books
DatabaseError: database disk image is malformed
So this *might* be an issue with the database on the device since the copying itself shows no issues.
The other option would be that the copied file ("/var/folders/x7/94fnxx_91nl3m6wtrll3_qnr0000gn/T/calibre_2.1.0_tmp_arhgnW/T_eZpI_ios_local_db/mainDb.sqlite") somehow gets corrupted.
Thus, it would be helpful if you,
lamp, could email me (wk@mailstation.de) the file "mainDb.sqlite" so that I can check it for corruption.
Some adventurous soul might want to try re-installing Marvin itself, populating Marvin's library only with the provided ebooks and trying again to use the plugin.
Again, sorry for your troubles but the code should work fine (and it does for me and it wasn't changed recently, nor should that part be in any way impacted by the switch to Qt5/PyQt5) and without a way to reproduce the issue, it's hard to see what's going on.
As for the PyQt4 error, exit Calibre, delete the directory "plugins/iOS_reader_applications_resources/widgets" and start Calibre again. This looks very much like an issue caused by switching between Calibre 1.x and 2.x.
Finally, you don't have to dig into your backups to get *any* version of the plugin - you can download them all from
https://github.com/Philantrop/calibr...tions/releases