jgoguen / calibre-kobo-driver

An extension of the existing KoboTouch driver provided with Calibre. This plugin allows modifying ePub files to enable extra Kobo features. I am providing code in the repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not my employer.
GNU General Public License v3.0
335 stars 23 forks source link

Obok DeDRM plugin not functioning in Calibre 6.0 #146

Closed Icendra closed 2 years ago

Icendra commented 2 years ago

Bug Checklist

These items are mandatory. If you need help finding this information submit the bug report with as much completed as you can and ask for help finding the rest.

These items are optional. Fill in as much of them as possible. If something is not applicable to your bug report, note that.

Describe the bug

Obok DeDRM plugin not functioning in Calibre 6.0

Steps to Reproduce

click on the Obok DeDRM button error screen pops up

Expected behavior

The list of kepub files downloaded from Kobo Desktop edition 4.33.1755 to my hard drive opens to allow me to select which books to import

Actual behaviour

calibre, version 6.0.0 ERROR: Unhandled exception: AttributeError:type object 'QTableWidgetItem' has no attribute 'UserType'

calibre 6.0 embedded-python: True Windows-10-10.0.22000 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22000') Python 3.10.1 Windows: ('10', '10.0.22000', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 49, 0) && Barnes & Noble (1, 2, 16) && Goodreads (1, 5, 3) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 0) && Obok DeDRM (7, 1, 0) Traceback (most recent call last): File "calibre_plugins.obok_dedrm.action", line 135, in launchObok File "calibre_plugins.obok_dedrm.dialogs", line 102, in init File "calibre_plugins.obok_dedrm.dialogs", line 154, in populate_table File "calibre_plugins.obok_dedrm.dialogs", line 179, in populate_table_row File "calibre_plugins.obok_dedrm.dialogs", line 439, in init File "calibre_plugins.obok_dedrm.dialogs", line 412, in init AttributeError: type object 'QTableWidgetItem' has no attribute 'UserType'

Screenshots

If applicable, add screenshots to help explain your problem. If you are using calibre in any language other than English, please either provide a translation of any relevant text to English or switch calibre to use English first.

Logs

Restart calibre in debug mode. Paste the full calibre debug log here. To get the debug log:

  1. Find the Preferences button in the calibre toolbar.
  2. Click the arrow to the right of Preferences.
  3. Select the Restart in debug mode menu item.
    1. This will shut down and restart calibre immediately. Calibre will automatically restart, but it may take a few seconds.
    2. You will see a notification informing you that you have started calibre in debug mode. Click OK.
  4. Do the minimum possible steps to reproduce the bug.
  5. Close calibre.
    1. This will automatically display the debug log. Copy and paste the entire log in the blank space here (between ```text and ```)
calibre Debug log
calibre 6.0  embedded-python: True
Windows-10-10.0.22000 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.10.1
Windows: ('10', '10.0.22000', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 49, 0) && Barnes & Noble (1, 2, 16) && Goodreads (1, 5, 3) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 0) && Obok DeDRM (7, 1, 0)
calibre 6.0  embedded-python: True
Windows-10-10.0.22000 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.10.1
Windows: ('10', '10.0.22000', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 49, 0) && Barnes & Noble (1, 2, 16) && Goodreads (1, 5, 3) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 0) && Obok DeDRM (7, 1, 0)
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 93.6046065259117 x 93.62457337883959
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.22] splash screen shown
[0.22] Initializing db...
[8.31] db initialized
[8.31] Constructing main UI...
DEBUG:    0.0 obok::utilities.py - loading translations
DEBUG:    0.0 obok::dialogs.py - loading translations
DEBUG:    0.0 obok::config.py - loading translations
DEBUG:    0.0 obok::action_err.py - loading translations
[13.80] main UI initialized...
[13.80] Hiding splash screen
calibre 6.0  embedded-python: True
Windows-10-10.0.22000 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.10.1
Windows: ('10', '10.0.22000', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 49, 0) && Barnes & Noble (1, 2, 16) && Goodreads (1, 5, 3) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 0) && Obok DeDRM (7, 1, 0)
Traceback (most recent call last):
  File "calibre_plugins.obok_dedrm.action", line 135, in launchObok
  File "calibre_plugins.obok_dedrm.dialogs", line 102, in __init__
  File "calibre_plugins.obok_dedrm.dialogs", line 154, in populate_table
  File "calibre_plugins.obok_dedrm.dialogs", line 179, in populate_table_row
  File "calibre_plugins.obok_dedrm.dialogs", line 439, in __init__
  File "calibre_plugins.obok_dedrm.dialogs", line 412, in __init__
AttributeError: type object 'QTableWidgetItem' has no attribute 'UserType'

Starting QuickView
[17.33] splash screen hidden
[17.33] Started up in 17.33 seconds with 125680 books
Running Obok DeDRM v7.1.0
DEBUG:   10.8 didn't find device
Obok v4.0.0
Copyright © 2012-2020 Physisticated et al.
C:\Users\klewe\AppData\Local\Temp\tmpnylau1e9
DEBUG:   11.5 got kobodir C:\Users\klewe\AppData\Local\Kobo\Kobo Desktop Edition
Found 28 possible keys to try.

Additional context

Please let me know if you need further information about my operating system for full diagnostics

Icendra commented 2 years ago

Please disregard. My issue was with the DeDRM tools and not the input plugin. I have been directed to updated tools that have fixed my issue.