Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2012, 11:23 AM   #1
technicaltitch
Member
technicaltitch began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 350
Calibre 0.8.7 for linux needs libfontconfig.so.1

Dear all

I installed calibre to my ubuntu server using the line:

sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"

The install went smoothly except an error with QDesktopServices, I assume as I don't have a GUI installed. QImage also failed. (Please bear with my linux ignorance.)

I have a custom recipe, so I try the line:

sudo ebook-convert economist-8-28.recipe econ.epub

I get the error:

InputFormatPlugin: Recipe Input running
Traceback (most recent call last):
File "site.py", line 58, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 325, in main
File "site-packages/calibre/ebooks/conversion/plumber.py", line 989, in run
File "site-packages/calibre/customize/conversion.py", line 239, in __call__
File "site-packages/calibre/ebooks/conversion/plugins/recipe_input.py", line 54, in convert
File "site-packages/calibre/web/feeds/recipes/__init__.py", line 8, in <module>
File "site-packages/calibre/web/feeds/news.py", line 30, in <module>
File "site-packages/calibre/utils/magick/__init__.py", line 15, in <module>
RuntimeError: Failed to load ImageMagick: libfontconfig.so.1: cannot open shared object file: No such file or directory

Any ideas? I can't find anything resembling libfontconfig in the calibre directories or install stdout.

Huge thanks
Chris
technicaltitch is offline   Reply With Quote
Old 09-23-2012, 11:30 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,097
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to install fontconfig on your server.
kovidgoyal is offline   Reply With Quote
Old 09-23-2012, 12:46 PM   #3
technicaltitch
Member
technicaltitch began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 350
Quote:
Originally Posted by kovidgoyal View Post
You need to install fontconfig on your server.
It is unlikely anyone out there is as ignorant as me, but just in case, this fixed the problem..

sudo apt-get install fontconfig

duh..

thank you very much..
technicaltitch is offline   Reply With Quote
Old 09-23-2012, 01:04 PM   #4
technicaltitch
Member
technicaltitch began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 350
Although later in the process I get a problem with QDesktopServices

67% Running EPUB Output plugin
Found non-unique filenames, renaming to support broken EPUB readers like FBReader, Aldiko and Stanza...
Traceback (most recent call last):
File "site.py", line 58, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 325, in main
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1128, in run
File "site-packages/calibre/ebooks/conversion/plugins/epub_output.py", line 163, in convert
File "site-packages/calibre/ebooks/oeb/transforms/rescale.py", line 16, in __call__
File "site-packages/calibre/gui2/__init__.py", line 7, in <module>
ImportError: cannot import name QDesktopServices


I tried installing QDesktopServices or Qt - not found.

Sorry..any ideas?
technicaltitch is offline   Reply With Quote
Old 09-23-2012, 01:10 PM   #5
technicaltitch
Member
technicaltitch began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 350
sorry, got it -
sudo apt-get install libqt3-mt
technicaltitch is offline   Reply With Quote
Old 09-24-2012, 12:50 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 64,005
Karma: 42472847
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Kobo H2O, N7
Is there any reason that you're installing such an ancient version of Calibre?
HarryT is offline   Reply With Quote
Old 09-24-2012, 01:20 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,861
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by HarryT View Post
Is there any reason that you're installing such an ancient version of Calibre?
He is installing the current version as evidenced by the command string he presented. He simply forgot to include the trailing 0 in the title.

I do wonder why he didn't use the full install string recommended on the download page, but I'm not a Linux user so I have no idea what the difference is.

Code:
sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main()"

Last edited by DoctorOhh; 09-24-2012 at 01:25 AM.
DoctorOhh is offline   Reply With Quote
Old 09-28-2012, 05:42 AM   #8
technicaltitch
Member
technicaltitch began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 350
Thanks for correcting me. Normally on Linux you get installations from repositories rather than the software website, so in my broad ignorance I got the command from one of those.
technicaltitch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Calibre on Windows and Linux lookin Devices 1 06-21-2011 06:52 PM
Calibre Linux grueno_books Calibre 3 11-11-2010 12:09 PM
Removing Calibre from Linux Logseman Calibre 2 08-23-2010 12:54 PM
Calibre on Linux... hrickh Calibre 1 08-05-2010 05:58 PM
calibre 0.6.10 for Linux AprilHare Calibre 3 09-03-2009 07:03 PM


All times are GMT -4. The time now is 06:51 PM.


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