View Single Post
Old 10-09-2017, 06:38 AM   #1742
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
Beta - fix for DRM protected books

Quote:
Originally Posted by reinhardtjh View Post
I have had a Kobo Aura since 2015. And sometime in April I upgraded the firmware to the new 4.x series, currently 4.5.9587. I went a few weeks before adding any new books, but when I finally did, i started getting this error on "Send to Device"

Code:
calibre, version 3.7.0
ERROR: Error: Error communicating with device

This file is locked with DRM. It cannot be edited.

Traceback (most recent call last):
  File "site-packages/calibre/gui2/device.py", line 88, in run
  File "site-packages/calibre/gui2/device.py", line 592, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 335, in upload_books
  File "site-packages/calibre/devices/kobo/driver.py", line 2014, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 179, in _modify_epub
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1165, in __init__
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1237, in process_encryption
DRMError: This file is locked with DRM. It cannot be edited.

I fussed with it for quite a while, going so far as to reset my Aura to factory setting, deleting all books and starting over but still I got the error - even on books I'd previously (before the firmware upgrade) loaded with no problem. Not on every book but most of them. I finally switched the Calibre driver back the "main" Kobo driver and no error. Books that would not load, did. So I switched back to the extended driver and I get the error. So whatever it is, it's something between the extended driver and the newer firmware on the Aura.

I watched here to see if anyone else would report it but I haven't seen it (or I missed it). So could it be something that I'm doing?
Sorry, I completely forgot about this. The attached beta should solve the problem with DRM protected books. They will be uploaded to the device with no changes made to them. Please test and report how it goes.
Attached Files
File Type: zip KoboTouchExtended-beta.zip (30.5 KB, 169 views)
davidfor is offline   Reply With Quote