|
|
#1 |
|
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
|
ebook-convert error on PDF output without X
Hi all,
I'm running a headless server to convert some recipes to .mobi which works just fine. Now I wanted to convert e.g. modoros.recipe to PDF on the same server, and I had got: Code:
The cover image has an id != "cover". Renaming to work around bug in Nook Color Traceback (most recent call last): File "site.py", line 58, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 282, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 1033, in run File "site-packages/calibre/ebooks/pdf/output.py", line 90, in convert File "site-packages/calibre/ebooks/pdf/output.py", line 119, in convert_text File "site-packages/calibre/ebooks/pdf/output.py", line 122, in write File "site-packages/calibre/ebooks/pdf/writer.py", line 116, in __init__ Exception: Not OK to use Qt Code:
ebook-convert "${RECIPE}" "${RECIPE_NAME}.pdf" \
--smarten-punctuation \
--change-justification justify \
--paper-size a4 \
--pretty-print \
--preserve-cover-aspect-ratio \
--insert-blank-line \
--margin-bottom 72.0 \
--margin-top 72.0 \
--margin-left 72.0 \
--margin-right 72.0 \
-vv \
--debug-pipeline debugdir/pdf \
| tee debugdir/pdfdebug.log
What am I doing wrong? Or do I really need X and Qt for CLI conversions to PDF?
|
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123457
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
You really need QT. X is not a requirement that I'm aware of, but the conversion engine uses some of QT's image handling libraries.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Moderator Notice Moved to appropriate forum. As far as I know, Calibre needs X to be installed for just about everything because of some common Qt functions. There are some notes in the FAQ that may be of help to you. |
|
|
|
|
|
#4 |
|
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
You don't need a full X server installed you can use xvfb to allow Qt to run. PDF output for instance uses Qt for creating the PDF files. A number of other parts (MOBI output) will check for X / Qt and skip the processing steps that require it.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error - convert pdf to epub | alephan | Calibre | 2 | 09-27-2010 06:12 PM |
| Getting error when trying to convert a pdf file | Blue Dream | Calibre | 1 | 07-24-2010 11:51 PM |
| Grab news error with PDF output | chatainsim | Calibre | 3 | 02-28-2010 07:59 PM |
| Convert PDF To Sony eBook Format? | Sjwdavies | Sony Reader | 12 | 12-13-2009 04:15 AM |
| Can the ebook from kindle convert back to pdf? | cathyhk | Amazon Kindle | 1 | 11-28-2009 12:08 PM |