Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2024, 10:31 AM   #16
Yasuro
Junior Member
Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 5
Karma: 50592
Join Date: Oct 2022
Device: none
Spews errors when I try to give the location of the binary

When I try to specify the location of the k2pdfopt binary for the plugin, I get the following error. Plugin 0.5.3, Calibre 7.7.0, Windows 11.
----
calibre, version 7.7.0
エラー: ハンドルされない例外: <b>NameError</b>:name 'os' is not defined

calibre 7.7 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.11.5
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: ja
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 10, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 10, 0) && Extract ISBN (1, 6, 2) && K2pdfopt Plugin (0, 5, 3) && KFX metadata reader (from KFX Input) (2, 10, 0) && From KFX (2, 10, 0) && KFX Input (2, 10, 0) && Obok DeDRM (10, 0, 3)
Traceback (most recent call last):
File "calibre_plugins.k2pdfopt_plugin.gui.config", line 103, in _choose_file
NameError: name 'os' is not defined
Yasuro is offline   Reply With Quote
Old 05-05-2024, 11:23 AM   #17
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
I uploaded a fix to the problem.
capink is offline   Reply With Quote
Advert
Old 05-05-2024, 06:40 PM   #18
Yasuro
Junior Member
Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Yasuro is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 5
Karma: 50592
Join Date: Oct 2022
Device: none
Quote:
Originally Posted by capink View Post
I uploaded a fix to the problem.
Thanks. I have not used the plugin itself yet, but that error is now gone.
Yasuro is offline   Reply With Quote
Old 03-01-2025, 01:17 PM   #19
ec33
Junior Member
ec33 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2025
Device: Kindle Paperwhite 3
Hi, thanks very much for this plugin. Really nice to have this integrated into Calibre.

There is one thing that doesn't seem to work - setting margins through the GUI seems to have no effect on the output. Is there any way to make this function work?
ec33 is offline   Reply With Quote
Old 03-01-2025, 04:37 PM   #20
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
It is working for me. Note that k2pdfopt options can be mutually exclusive. So for example if you try specify margins while at the same time you using default conversion mode, margins will not be trimmed, even with the command line program. You can use trim mode instead and you will be able to crop margins.

At the bottom of the plugin's dialog there is button called "Show command version" that opens textbox, you can copy/paste the textbox here so that we can see what options you are using.

It is helpful to both read k2pdfopt documentation, and also experiment with the command line program using the content of the textbox above, to examine whether there is any discrepancy between the plugin and the original program.

Edit: The plugin already greys out some options when they clash with other selected options. This obviously does not cover every possible clash. After we got to the bottom of what your problem is, I will see whether I can grey out the margins box in certain scenarios.

Last edited by capink; 03-01-2025 at 04:41 PM.
capink is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Manga plugin mastertea Plugins 6 01-06-2022 02:43 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 07:05 PM.


MobileRead.com is a privately owned, operated and funded community.