![]() |
Check PrincePDF output
Hi
I am used to export with PrincePDF and, up to now, this has worked very reliably with both the Calibre and Sigil related plugins. Lately I tried to export with two different display sizes. It worked once but later failed with this consistent error message that I am getting now everytime I try to export. Code:
.../...- I tried this export using two different versions of Sigil, one from Arch Linux, the other from sigil-git - Arch too - (so Sigil does not seem to be the culprit). - Python3.5 is installed on my machine with all needed dependencies. I checked with the testplugin which finds no problem. -I uninstalled totally the PrincePDF plugin (including prefs) and reinstalled it with the default settings (with only one display size) -I used EPUB2 and EPUB3 ebooks. After all these tries, everything failed with the same warning (see above): B]About dependencies[/B] Code:
[roger@anterg ~]$ sudo pip3 install lxml bs4 |
I'm not able to reproduce this error on my Windows and Linux machines, unless I change the interpreter to Python 2.7. Can you please post a sample epub that reliably causes this error.
@roger64: The error message is missing the last part (marked in Magenta). It should look like this: Spoiler:
Code:
Status: failedPlease post the complete error message, including all lines after: Code:
BeautifulSoup([your markup], "lxml")If you have the plugin installed please test this issue: 1. Create a blank epub. 2. Change the book title to öäöüöasf (or any other title that contains at least one accented character/umlaut) 3. Run the plugin. |
1 Attachment(s)
Hi Doitsu
Here is the full error message. It just ends after "markup_type=markup_type))" I did not suppress any bit. I also join the EPUB2. It failed the same after renaming the EPUB with öäöüöasf with exactly the same error message. Spoiler:
Code:
Statut :failed |
@roger64: The plugin assumes that a Desktop folder exists. If you've installed a French Arch Linux version the Desktop folder is most likely called Bureau, which most likely caused your problem.
If that's the case, please change the following line from: Code:
output_dir = os.path.join(expanduser('~'), 'Desktop')Code:
output_dir = os.path.join(expanduser('~'), 'Bureau')Alternatively, you could also change the output folder in PrincePDF.json: Code:
{ |
Quote:
I took your second solution and that was it. Thank you for finding this out! I am sorry for giving you trouble. I just hope some other people may learn about this mistake and its consequences. Thank you very much! :thanks: |
| All times are GMT -4. The time now is 08:54 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.
