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

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2011, 11:56 PM   #1
HalfEmptyHero
Junior Member
HalfEmptyHero began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Device: Kindle
Build Failing

I'm trying to build calibre on Kubuntu Natty so that it won't look crappy, but I'm running into this error:

Code:
 File "/home/brendan/Source/calibre/src/calibre/utils/magick/__init__.py", line 15, in <module>
    raise RuntimeError('Failed to load ImageMagick: '+_merr)
RuntimeError: Failed to load ImageMagick: No module named magick
I have imagemagick and the python bindings for it installed.
HalfEmptyHero is offline   Reply With Quote
Old 04-15-2011, 12:17 AM   #2
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,887
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Moderator Notice
Thread moved, read this sticky before posting in the Development forum.
DoctorOhh is online now   Reply With Quote
 
Advertisement
Old 04-15-2011, 08:49 AM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by HalfEmptyHero
I'm trying to build calibre on Kubuntu Natty so that it won't look crappy
It's going to look the same. Calibre's GUI uses Qt and building from source isn't going to change how it looks. It should be using your KDE theme. How do you have it installed? Ubuntu package or binary installer?

Quote:
Originally Posted by HalfEmptyHero
I have imagemagick and the python bindings for it installed.
Both of which are unnecessary. Calibre uses it's own bindings and works directly with the shared library. You need to install libmagickwand-dev.

If you're not using the binary install use that as will give you the latest version. The version packaged in Natty is already 10 versions out of date and won't be updated until Natty+1.

I would also recommend against building from source see http://calibre-ebook.com/user_manual...nt-environment for running from source using an existing calibre install. You are going to run into quite a few issues with Ubuntu (and it's variants) most people do. It is also not a distribution we provide support for because the vast majority of Linux related issues are Ubuntu doing something stupid.
user_none is offline   Reply With Quote
Old 04-15-2011, 12:06 PM   #4
HalfEmptyHero
Junior Member
HalfEmptyHero began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by user_none View Post
It's going to look the same. Calibre's GUI uses Qt and building from source isn't going to change how it looks. It should be using your KDE theme. How do you have it installed? Ubuntu package or binary installer?



Both of which are unnecessary. Calibre uses it's own bindings and works directly with the shared library. You need to install libmagickwand-dev.

If you're not using the binary install use that as will give you the latest version. The version packaged in Natty is already 10 versions out of date and won't be updated until Natty+1.

I would also recommend against building from source see http://calibre-ebook.com/user_manual...nt-environment for running from source using an existing calibre install. You are going to run into quite a few issues with Ubuntu (and it's variants) most people do. It is also not a distribution we provide support for because the vast majority of Linux related issues are Ubuntu doing something stupid.
The whole reason I want to build it is because it isn't using the kdetheme, and I was told the only way to fix that would be to build it myself and I was using the binary install. I have tried downloading the source and doing sudo python setup.py install as well as sudo python setup.py develop and both fail when trying to load ImageMagick.
HalfEmptyHero is offline   Reply With Quote
Old 04-15-2011, 12:18 PM   #5
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Hmm... The error is related to calibre not being able to load the binary ImageMagick plugin. Calibre uses a binary C plugin that uses libmagickwand. The python binding for the plugin is unable to load the plugin.

Use the -h flag to get a list of commands. It appears the C plugin for ImageMagick isnt being built. See if there is a command to build them. Then try install.
user_none is offline   Reply With Quote
Old 04-15-2011, 12:34 PM   #6
HalfEmptyHero
Junior Member
HalfEmptyHero began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Device: Kindle
Well I got it to work by commenting out the 2 lines that raised the ValueError, and everything seems to be working so far. It runs, and looks pretty; I am able to view books and was able to convert a pdf to mobi. What exactly is ImageMagick used for in calibre so I can test to see if it's working. I assumed it would be used in image converting when converting books to different formats, is that correct?

Also I did get an unrelated warning after the building.

Code:
('PoDoFo not found on your system. Various PDF related', ' functionality will not work. Use the PODOFO_INC_DIR and', ' PODOFO_LIB_DIR environment variables.')
I'm not sure what podofo is, but converting from a pdf at least works.

Edit: Nevermind about podofo, I found it.

Last edited by HalfEmptyHero; 04-15-2011 at 12:40 PM.
HalfEmptyHero is offline   Reply With Quote
Old 04-15-2011, 12:39 PM   #7
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,329
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
image magick is used in lots of places. For example, it is used everytime you set a cover for a book in calibre.
kovidgoyal is offline   Reply With Quote
Old 04-15-2011, 12:45 PM   #8
HalfEmptyHero
Junior Member
HalfEmptyHero began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Device: Kindle
Well since I am able to set covers, and I don't see any error messages (running from terminal), can I assume imagemagick is working properly?
HalfEmptyHero is offline   Reply With Quote
Old 04-15-2011, 01:22 PM   #9
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,329
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes .
kovidgoyal 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
Help! Conversion failing... Zerotoeleven Conversion 2 04-06-2011 12:24 AM
V3 failing to charge sid201 HanLin eBook 2 03-05-2011 12:00 AM
Failing UFC Feed mufc Recipes 0 02-18-2011 10:38 AM
Failing to download Slate shoukyd Calibre 2 04-03-2010 12:46 AM
Update 2.3 failing geekraver Kindle Developer's Corner 7 11-28-2009 06:40 PM


All times are GMT -4. The time now is 03:18 PM.


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