View Single Post
Old 12-22-2014, 10:17 AM   #1
jammer699669
Junior Member
jammer699669 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2014
Device: android
Ebook-Convert Import Errors

ImportError: cannot import name Qcolor

is the error I am getting

I am running it on a full server and want to use the EXec command to convert from epub to Mobi
The server is running CentOS6 without a GUI

I have tried to make sure everything is installed etc but the problem comes when it starts doing the Imports

[0] => 1% Converting input to HTML...
[1] => InputFormatPlugin: EPUB Input running
[2] => on /home/spang/public_html/epub/DefiantHeart.epub
[3] => Found HTML cover OEBPS/CoverPage.xhtml
[4] => Parsing all content...
[5] => CSSPageRule selectorText: Unexpected CHAR: u',' [2:6: ,]
[6] => CSSPageRule selectorText: Unexpected CHAR: u',' [2:12: ,]
[7] => CSSPageRule selectorText: Unexpected IDENT: u'div' [2:14: div]
[8] => CSSPageRule selectorText: Unexpected CHAR: u',' [2:17: ,]
[9] => CSSPageRule selectorText: Unexpected IDENT: u'img' [2:19: img]
[10] => 34% Running transforms on ebook...
[11] => Merging user specified metadata...
[12] => Detecting structure...
[13] => Flattening CSS and remapping font sizes...
[14] => Source base font size is 12.00000pt
[15] => Removing fake margins...
[16] => Cleaning up manifest...
[17] => Trimming unused files from manifest...
[18] => Trimming u'OEBPS/CoverPage.xhtml' from manifest
[19] => Creating MOBI Output...
[20] => 67% Running MOBI Output plugin
[21] => Serializing resources...
[22] => Creating MOBI 6 output
[23] => Traceback (most recent call last):
[24] => File "site.py", line 51, in main
[25] => File "site-packages/calibre/ebooks/conversion/cli.py", line 360, in main
[26] => File "site-packages/calibre/ebooks/conversion/plumber.py", line 1195, in run
[27] => File "site-packages/calibre/ebooks/conversion/plugins/mobi_output.py", line 206, in convert
[28] => File "site-packages/calibre/ebooks/conversion/plugins/mobi_output.py", line 216, in write_mobi
[29] => File "site-packages/calibre/ebooks/oeb/transforms/rasterize.py", line 13, in
[30] => ImportError: cannot import name QColor


this is the line from the php file
exec("ebook-convert DefiantHeart.epub DefiantHeart.mobi 2>&1 ",$output);

Last edited by jammer699669; 12-22-2014 at 10:36 AM.
jammer699669 is offline   Reply With Quote