12-28-2013, 04:05 PM | #16 |
null operator (he/him)
Posts: 20,935
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Well not quite perfect, when I switched from my Test Library back to my Main library after doing the test I got several of the following errors (about 8 I think)
Code:
calibre, version 1.17.0 ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'split' calibre 1.17 [64bit] isfrozen: True is64bit: True Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Traceback (most recent call last): File "calibre_plugins.prince_pdf.main", line 101, in update_info AttributeError: 'NoneType' object has no attribute 'split'
And when I switch from Main back to Test I get series of these errors Code:
calibre, version 1.17.0 ERROR: Unhandled exception: <b>AttributeError</b>:'LibraryDatabase' object has no attribute 'new_api' calibre 1.17 [64bit] isfrozen: True is64bit: True Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Traceback (most recent call last): File "calibre_plugins.prince_pdf.main", line 101, in update_info File "site-packages\calibre\db\legacy.py", line 556, in formats AttributeError: 'LibraryDatabase' object has no attribute 'new_api' I think you should be able to replicate this problem in Linux, but you'll need more than one library. BR |
12-29-2013, 03:17 AM | #17 | |||
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
|
|||
Advert | |
|
12-29-2013, 03:54 AM | #18 |
null operator (he/him)
Posts: 20,935
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Yep, I have 7 empty books in my main library and 1 in my test library - ergo I get the messages eight times - I dont have to hit the Prince PDF button to get the error. My guess is that a library switch has the db backend 'selecting' every book in the library - ie enumerating the book list.
The libraries were created with 0.8.?? when the 'old database backend' was extant. However, I'm running 1.17. My understanding is that this means I'm using the 'new database backend' - but I could be wrong. Maybe someone can poke their oar in and confirm or correct that assertion. Added : if I don't use the Prince PDF plugin, I done get any errors... Cheers BR Last edited by BetterRed; 12-29-2013 at 04:12 AM. |
12-29-2013, 04:21 AM | #19 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
This should fix the first error and some of the annoying error messages with the plugin closed. The second problem I cannot reproduce, I tried setting the old backend, as indicated here, but I didn't get that message. Hopefully it will go away with the other fix, otherwise maybe you can send me your test library (and settings), or someone else can help.
As far as I can see, that's an internal problem of calibre, maybe triggered by something wrong in the plugin, but it's happening in legacy.py, line 556 Edit: Ah... yes, I can reproduce the error when switching libraries with the plugin window open. I guess that's because I'm not updating the "db" attribute after library change. Last edited by Jellby; 12-29-2013 at 05:52 AM. |
12-29-2013, 05:51 AM | #20 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I think both issues are fixed in version 1.1.1
|
Advert | |
|
12-29-2013, 05:47 PM | #21 |
null operator (he/him)
Posts: 20,935
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
01-09-2014, 04:46 PM | #22 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Not to be thick, but I thought I'd give this plugin a shot to address a request from a client, and the plug-in can't find Prince or prince.exe at the Win7 dir address. I don't see the option to address the location of the executable. As someone not really familiar with using Calibre, (nor do I see any plug-in documentation?), can someone tell me where I can tell the plug-in/Calibre that it's a 64-bit Win install? Like BetterRed, mine are in the x86 dir. Thx in advance, Hitch |
|
01-09-2014, 05:20 PM | #23 | |
null operator (he/him)
Posts: 20,935
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
In the config screen at top right there's a Browse button, click it and browse to and select C:\Program Files (x86)\Prince\Engine\bin\prince.exe You get to the Configuration screen via corresponding button on the first popup you get when you click the the Prince icon in tool bar. There's a bit of spiel behind the Help button Hope that helps - BR |
|
01-09-2014, 06:28 PM | #24 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Thanks. NOW I see it. I think I was using the GUI interface inadvertently. Urgh. The plugin, without any tweaking, seems to function (now), and I can see I'll have to learn quite a bit to make it perform a little better. However, spiffy! Hitch |
|
01-09-2014, 08:45 PM | #25 | ||
null operator (he/him)
Posts: 20,935
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
BR |
||
01-10-2014, 09:06 AM | #26 | ||
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
04-29-2014, 10:17 AM | #27 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I have been a longtime user of the script version, which stopped running probably due to some Python update. So, it's about time to have a look at the plug-in version which looks very handy. I used two different scripts to produce two PDF formats, a 9x12cm and a IPAD one. Maybe the following idea is a technical horror but... Is there a possibility of installing two plugins, under different names, each one dedicated to its own format? I promise, I would only use one at a time. If this is not possible, what would be the easiest way to produce two different formats? Last edited by roger64; 04-29-2014 at 10:21 AM. |
04-29-2014, 10:24 AM | #28 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Hmm... Didn't think of that... The only difference between the two scripts is the default stylesheet added, right? I guess I could try to add the possibility of saving different presets, and then select which one to use for each conversion. Since I'm not an expert in either GUI programming or python, this can take me some time.
What you could do now is saving the different stylesheets elsewhere and copy-paste them before doing the conversion. Not very user-friendly, though. |
04-29-2014, 10:41 AM | #29 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for your reply. I know for a long time that I give you trouble.
BTW, the first try was nearly perfect (LMDE - 64 bits). Only the SVG cover (a wrapper made by Calibre) displayed vertical stripes of white, one at the top and the other down. But I'll probably find the solution using part of the former code and adding some !important as you teached me. (OK now, using the other script) Yes the scripts are of course the same and only differ by the stylesheet. I'll have to use Copy/Paste in the meantime. Last edited by roger64; 04-29-2014 at 11:07 AM. |
05-12-2014, 04:33 PM | #30 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2014
Device: none
|
Thank you Jellby for your plugin! It works very well.
Is there a place to download different stylesheets for the conversion to PDF? For example, I like roger64's IPAD-version, but don't have the skills to make my own. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 541 | 09-10-2024 11:05 AM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Wordpress | frescogamba | Plugins | 11 | 04-06-2015 09:09 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |