View Single Post
Old 11-10-2024, 02:51 PM   #493
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,195
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Go to the calibre download page and install calibre from there.
https://calibre-ebook.com/download_linux

Do this step!!!!!!!!!


Go to this page Click the green Code button, then click on download zip. Extract the zip file then click on bundle_calibre_plugin.sh, select "Run in Terminal" that will built the plugin for you. Now open calibre go to Perferences--Plugins--Load plugin from file, select "calibre-plugin.zip"


This is my debug on Mint 22 downloading a test epub for adobe.

Code:
xxxxxxx@xxxxxxx:~$ calibre-debug -g
calibre 7.21  embedded-python: True
Linux-6.8.0-48-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-48-generic', '#48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024')
Python 3.11.5
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && DeDRM (10, 0, 9) && ACSM Input Plugin GUI Extension (0, 1, 0) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 6) && Diaps Editing Toolbag (0, 5, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && Goodreads (1, 8, 2) && Hyphenate This! (0, 1, 3) && Set KFX metadata (from KFX Output) (2, 12, 0) && KFX Output (2, 12, 0) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 7, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 10, 2) && Kobo Utilities (2, 17, 2) && Modify ePub (1, 8, 5) && Quality Check (1, 13, 15)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 92.53889943074003 x 92.67567567567568
ApplicationPaletteChange event ignored
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[1.08] splash screen shown
[1.08] Initializing db...
[1.34] db initialized
[1.34] Constructing main UI...
DEBUG:    0.0 Kobo Utilities Configuration - CreateNewCustomColumn is supported
DEBUG:    0.0 KoboUtilites::action.py - loading translations
DEBUG:    0.0 KoboUtilites::dialogs.py - loading translations
DEBUG:    0.0 KoboUtilites::action.py - loading translations
ACSM Input: GUI Plugin Genesis!
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
[2.29] GUI main window shown
EpubMerge: DEBUG: 2024-11-10 13:55:34,864: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:/home/xxxxxxx/.config/calibre/plugins/fanficfare_macmenuhack.txt
DEBUG:    0.7 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    0.7 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None
DEBUG:    0.7 KoboUtilities:set_toolbar_button_tooltip - start: text='None'
DEBUG:    0.7 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
DEBUG:    0.7 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders

Driver: KoboTouch'
DEBUG:    0.7 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[2.37] main UI initialized...
[2.37] Hiding splash screen
[2.37] splash screen hidden
[2.37] Started up in 2.37 seconds with 3814 books
DEBUG:    4.2 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    4.2 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    4.2 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None
DEBUG:    4.2 KoboUtilities:set_toolbar_button_tooltip - start: text='None'
DEBUG:    4.2 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
DEBUG:    4.2 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders

Driver: KoboTouch'
DEBUG:    4.2 device_driver_name - could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
['zenity', '--modal', '--file-selection', '--title=Select books', '--separator=\n', '--attach=67108889', '--filename=/home/xxxxxxx/Downloads/bookbale/.fgdfg.gdfhjdhf*&^839', '--file-filter=Books | *.lrf *.rtf *.lit *.txt *.txtz *.text *.htm *.xhtm *.html *.htmlz *.xhtml *.pdf *.pdb *.updb *.pdr *.prc *.mobi *.azw *.doc *.epub *.fb2 *.fbz *.djv *.djvu *.lrx *.cbr *.cb7 *.cbz *.cbc *.oebzip *.rb *.imp *.odt *.chm *.tpz *.azw1 *.pml *.pmlz *.mbp *.tan *.snb *.xps *.oxps *.azw4 *.book *.zbf *.pobi *.docx *.docm *.md *.textile *.markdown *.ibook *.ibooks *.iba *.azw3 *.ps *.kepub *.kfx *.kpf *.acsm', '--file-filter=EPUB books | *.epub *.kepub', '--file-filter=Kindle books | *.mobi *.prc *.azw *.azw3 *.kfx *.tpz *.azw1 *.azw4', '--file-filter=PDF books | *.pdf *.azw4', '--file-filter=HTML books | *.htm *.html *.xhtm *.xhtml', '--file-filter=LIT books | *.lit', '--file-filter=Text books | *.txt *.text *.rtf *.md *.markdown *.textile *.txtz', '--file-filter=Comics | *.cbz *.cbr *.cbc *.cb7', '--file-filter=Archives | *.zip *.rar *.7z', '--file-filter=Wordprocessor files | *.odt *.doc *.docx', '--file-filter=All files | *', '--multiple']
ACSM Input v0.1.0: Trying to parse file The Adventures of Sherlock Holmes.acsm
ACSM Input v0.1.0: Try to fulfill ...
Notifying server ...
Notifying server https://contentserver.adobe.com/fulfillment/FulfillmentNotification
Fulfillment notification successful.
ACSM Input v0.1.0: Downloading book ...
ACSM Input v0.1.0: Loading book from http://contentserver.adobe.com/media/723caf6a-0e27-44be-8733-904cede39cd2.epub
Download took 1338 ms (HTTP 200)
That's a ZIP file -> EPUB
ACSM Input v0.1.0: File successfully fulfilled ...
ACSM Input v0.1.0: Executing plugin DeDRM ...
DeDRM v10.0.9: Trying to decrypt 5htfks4d.epub
DeDRM v10.0.9: Verifying zip archive integrity
DeDRM v10.0.9: 5htfks4d.epub is a secure Adobe Adept ePub for UUID 9e387e4b-230e-4e68-ba40-2f6c33338da9
DeDRM v10.0.9: Trying Encryption key default_key
uin7gjxi.epub is a secure Adobe Adept ePub.
DeDRM v10.0.9: Decrypted with key default_key after 0.1 seconds
DeDRM v10.0.9: Post-processing took 0.1 seconds
DeDRM v10.0.9: Finished after 0.2 seconds
ACSM Input v0.1.0: Plugin returned path '/tmp/calibre_7.21.0_tmp_j6wdpfql/k4znstm1.epub', updating.
Added The Adventures of Sherlock Holmes to db in: 0.1
Added 1 books in 6.4 seconds
bernie
Quote:
Originally Posted by Phoenix_v View Post
Thanks for looking at this, much shorter message this time but still not working?

"no top-level_init_py file"

calibre, version 7.6.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file

calibre 7.6 embedded-python: False
Linux-6.8.0-38-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-38-generic', '#38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3.12
Successfully initialized third party plugins: DeDRM (7, 2, 1)
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 325, in add_plugin
plugin = add_plugin(path)
^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/ui.py", line 513, in add_plugin
plugin = load_plugin(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/ui.py", line 64, in load_plugin
return loader.load(path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 299, in load
plugin_name = self._locate_code(zf, path_to_zip_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 394, in _locate_code
raise InvalidPlugin(('The plugin in %r is invalid. It does not '
calibre.customize.InvalidPlugin: The plugin in '/home/john/Downloads/calibre-plugins(1).zip' is invalid. It does not contain a top-level __init__.py file

Last edited by gbm; 11-10-2024 at 02:56 PM.
gbm is offline   Reply With Quote