![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2015
Device: kindle for droid
|
Required X library
Sorry if this is obvious (I have tried goggling and not found the answer
I have been trying to use calibre command line to fetch news, following the FAQ where is suggests "/opt/calibre/ebook-convert "Title of news source.recipe" outputfile.epub". This works fine on my desktop machine (running linux mint 17.2) but fails on my server running ubuntu 14.04. The error messages I get are: 1% Generating masthead... Synthesizing mastheadImage Failed to generate default masthead image and Creating MOBI Output... 67% Running MOBI Output plugin Serializing resources... Traceback (most recent call last): File "site.py", line 63, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 360, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 1207, in run File "site-packages/calibre/ebooks/conversion/plugins/mobi_output.py", line 190, in convert File "site-packages/calibre/ebooks/mobi/writer2/resources.py", line 36, in __init__ File "site-packages/calibre/ebooks/mobi/writer2/resources.py", line 58, in add_resources File "site-packages/calibre/ebooks/__init__.py", line 297, in generate_masthead File "site-packages/calibre/ebooks/covers.py", line 16, in <module> ImportError: cannot import name QImage In the FAQ it says that this is probably due to "some missing X libraries". If you could suggest what I should install I would be really grateful. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run this, to get more information
LD_DEBUG=libs calibre-debug -c "from PyQt5.QtGui import QImage" |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2015
Device: kindle for droid
|
[As a common courtesy, please learn to use spoiler tags. - MODERATOR]
Spoiler:
Last edited by Dr. Drib; 11-07-2015 at 07:15 AM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2015
Device: kindle for droid
|
Thanks for the fast response.
For anyone else who gets stuck with this, I solved it with: apt-get install libgl1-mesa-dev (There are probably better solutions) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help Required Please | Mazza | Devices | 2 | 10-24-2014 02:11 AM |
Recipe required | rayh | Recipes | 0 | 01-17-2012 02:55 AM |
Light Required | Hughdal | Which one should I buy? | 51 | 06-19-2011 02:43 PM |
Password Required Too Often? | jangell2 | Feedback | 6 | 05-08-2011 11:02 AM |
Ebook Library refusing to load on screen when new media.xml file required | seajewel | Calibre | 0 | 06-29-2008 07:46 PM |