noDRM / DeDRM_tools

DeDRM tools for ebooks
7.05k stars 316 forks source link

Cannot convert acsm to PDF #445

Closed Drjacky closed 10 months ago

Drjacky commented 10 months ago

Question / bug report

Cannot convert acsm to PDF. Sample acsm: https://archive.org/details/creatinepowersup00will/

Which version of Calibre are you running?

7.1

Which version of the DeDRM plugin are you running?

v10.0.9

If applicable, which version of the Kindle software are you running?

No response

Log output

converting EPUB:

calibre, version 7.1.0
ERROR: Error while saving: Failed to save any books to disk, click "Show details" for more information

Failed to save: CreatineThePowerSupplement by Unknown to disk, with error:
    Requested formats not available

When click on Convert Individualy:

calibre, version 7.1.0
WARNING: Could not convert some books: Could not convert the book because no supported source format was found

CreatineThePowerSupplement - No supported formats (Available formats: acsm)

Using calibre Qt style: True
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
2023-12-03 11:26:59.507 calibre-debug[9657:121818] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
calibre Debug log
calibre 7.1  embedded-python: True
macOS-14.1.2-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.1.0', 'Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('14.1.2', ('', '', ''), 'arm64')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Obok DeDRM (10, 0, 9)
calibre 7.1  embedded-python: True
macOS-14.1.2-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.1.0', 'Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('14.1.2', ('', '', ''), 'arm64')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Obok DeDRM (10, 0, 9)
QPA platform: cocoa
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485792 x 127.50000191485789
[0.00] Starting up...
[0.01] Showing splash screen...
[0.15] splash screen shown
[0.15] Initializing db...
[0.15] db initialized
[0.15] 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
[0.47] main UI initialized...
[0.47] Hiding splash screen
Starting QuickView
QAbstractItemView::commitData called with an editor that does not belong to this view
QAbstractItemView::commitData called with an editor that does not belong to this view
QAbstractItemView::closeEditor called with an editor that does not belong to this view
QAbstractItemView::closeEditor called with an editor that does not belong to this view
[55.50] splash screen hidden
[55.50] Started up in 55.50 seconds with 1 books
Added CreatineThePowerSupplement to db in: 0.0
Added 1 books in 0.2 seconds
Drjacky commented 10 months ago

Tried again:

Using calibre Qt style: True
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
ApplicationPaletteChange event received
2023-12-03 11:36:19.143 calibre-debug[10109:128666] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
calibre Debug log
calibre 7.1  embedded-python: True
macOS-14.1.2-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.1.0', 'Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('14.1.2', ('', '', ''), 'arm64')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Obok DeDRM (10, 0, 9)
calibre 7.1  embedded-python: True
macOS-14.1.2-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.1.0', 'Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('14.1.2', ('', '', ''), 'arm64')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Obok DeDRM (10, 0, 9)
QPA platform: cocoa
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485792 x 127.50000191485789
[0.00] Starting up...
[0.01] Showing splash screen...
[0.15] splash screen shown
[0.15] Initializing db...
[0.16] db initialized
[0.16] 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
[0.47] main UI initialized...
[0.47] Hiding splash screen
Starting QuickView
[2.53] splash screen hidden
[2.53] Started up in 2.53 seconds with 0 books

Debugging DND event
text/uri-list 114 b'file:///Users/usernameeee/Downloads/Unknown/CreatineThePowerSupplement/CreatineThePowerSupplement%20-%20Unknown.acsm\r\n' 

Firefox rurl: None None
URLS: ['file:///Users/usernameeee/Downloads/Unknown/CreatineThePowerSupplement/CreatineThePowerSupplement%20-%20Unknown.acsm']
Paths: ['/Users/usernameeee/Downloads/Unknown/CreatineThePowerSupplement/CreatineThePowerSupplement - Unknown.acsm']
Extensions: frozenset({'acsm'})
Added CreatineThePowerSupplement to db in: 0.0
Added 1 books in 0.2 seconds
QAbstractItemView::commitData called with an editor that does not belong to this view
QAbstractItemView::closeEditor called with an editor that does not belong to this view
ElleKayEm commented 10 months ago

Install Adobe Digital Editions, authorize it with an Adobe ID, and open the acsm with it to download the actual book. Then you can import it into calibre and DeDRM will remove the DRM.

ElleKayEm commented 10 months ago

If you're trying to avoid using ADE, then look for the DeACSM plugin.

Drjacky commented 10 months ago

DeACSM didn't help: https://github.com/Leseratte10/acsm-calibre-plugin/issues/73

But this helped:

authorize it with an Adobe ID, and open the acsm with it to download the actual book. Then you can import it into calibre and DeDRM will remove the DRM.

Thanks!