View Single Post
Old 11-27-2010, 06:56 PM   #12
beachsun
Junior Member
beachsun began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: Kindle 3 Wifi
Hi, i finally found the problem.
I was missing the libxslt Library, that is a requeriment of lxml.

But now when i call ebook-convert with a recipe, ie dilbert, it ends with a Segmentation Fault.

Any one can help?

Best Regards

Edit : So finally Segmentation Fault was a missing Libjpeg Library.

Next Step :
Now the message error is :
ImportError: cannot import name QPrinter

the python(on ebooks/pdf/pageoptions.py) line says : from PyQt4.Qt import QPrinter

Just like the PyQt4 port doesn't have QPrinter.

To see which modules has PyQt4 i have executed :
import PyQt4.Qt; print dir(PyQt4.Qt);

And the result is :
['PYQT_VERSION', 'PYQT_VERSION_STR', 'QAbstractAnimation', 'QAbstractEventDispatcher', 'QAbstract FileEngine', 'QAbstractFileEngineHandler', 'QAbstractFileEngineIterator', 'QAbstractItemModel', ' QAbstractListModel', 'QAbstractState', 'QAbstractTableModel', 'QAbstractTransition', 'QAnimationG roup', 'QBasicTimer', 'QBitArray', 'QBuffer', 'QByteArray', 'QByteArrayMatcher', 'QChar', 'QChild Event', 'QCoreApplication', 'QCryptographicHash', 'QDataStream', 'QDate', 'QDateTime', 'QDir', 'Q DirIterator', 'QDynamicPropertyChangeEvent', 'QEasingCurve', 'QEvent', 'QEventLoop', 'QEventTrans ition', 'QFSFileEngine', 'QFile', 'QFileInfo', 'QFileSystemWatcher', 'QFinalState', 'QGenericArgu ment', 'QGenericReturnArgument', 'QHistoryState', 'QIODevice', 'QLatin1Char', 'QLatin1String', 'Q Library', 'QLibraryInfo', 'QLine', 'QLineF', 'QLocale', 'QMargins', 'QMetaClassInfo', 'QMetaEnum' , 'QMetaMethod', 'QMetaObject', 'QMetaProperty', 'QMetaType', 'QMimeData', 'QModelIndex', 'QMutex ', 'QMutexLocker', 'QObject', 'QObjectCleanupHandler', 'QParallelAnimationGroup', 'QPauseAnimatio n', 'QPersistentModelIndex', 'QPluginLoader', 'QPoint', 'QPointF', 'QProcess', 'QProcessEnvironme nt', 'QPropertyAnimation', 'QReadLocker', 'QReadWriteLock', 'QRect', 'QRectF', 'QRegExp', 'QResou rce', 'QRunnable', 'QSemaphore', 'QSequentialAnimationGroup', 'QSettings', 'QSharedMemory', 'QSig nalMapper', 'QSignalTransition', 'QSize', 'QSizeF', 'QSocketNotifier', 'QState', 'QStateMachine', 'QString', 'QStringList', 'QStringMatcher', 'QStringRef', 'QSysInfo', 'QSystemLocale', 'QSystemS emaphore', 'QT_TRANSLATE_NOOP', 'QT_TR_NOOP', 'QT_TR_NOOP_UTF8', 'QT_VERSION', 'QT_VERSION_STR', 'QTemporaryFile', 'QTextBoundaryFinder', 'QTextCodec', 'QTextDecoder', 'QTextEncoder', 'QTextStre am', 'QTextStreamManipulator', 'QThread', 'QThreadPool', 'QTime', 'QTimeLine', 'QTimer', 'QTimerE vent', 'QTranslator', 'QUrl', 'QUuid', 'QVariant', 'QVariantAnimation', 'QWaitCondition', 'QWrite Locker', 'QXmlStreamAttribute', 'QXmlStreamAttributes', 'QXmlStreamEntityDeclaration', 'QXmlStrea mEntityResolver', 'QXmlStreamNamespaceDeclaration', 'QXmlStreamNotationDeclaration', 'QXmlStreamR eader', 'QXmlStreamWriter', 'Q_ARG', 'Q_ENUMS', 'Q_FLAGS', 'Q_RETURN_ARG', 'Qt', 'QtCriticalMsg', 'QtDebugMsg', 'QtFatalMsg', 'QtMsgType', 'QtSystemMsg', 'QtWarningMsg', 'SIGNAL', 'SLOT', '__doc __', '__file__', '__license__', '__name__', '__package__', 'bin', 'bom', 'center', 'dec', 'endl', 'fixed', 'flush', 'forcepoint', 'forcesign', 'hex', 'left', 'lowercasebase', 'lowercasedigits', 'noforcepoint', 'noforcesign', 'noshowbase', 'oct', 'pyqtProperty', 'pyqtRemoveInputHook', 'pyqtR estoreInputHook', 'pyqtSignal', 'pyqtSignature', 'pyqtSlot', 'pyqtWrapperType', 'qAbs', 'qAddPost Routine', 'qChecksum', 'qCompress', 'qCritical', 'qDebug', 'qErrnoWarning', 'qFatal', 'qFuzzyComp are', 'qInf', 'qInstallMsgHandler', 'qIsFinite', 'qIsInf', 'qIsNaN', 'qIsNull', 'qQNaN', 'qRegist erResourceData', 'qRemovePostRoutine', 'qRound', 'qRound64', 'qSNaN', 'qSetFieldWidth', 'qSetPadC har', 'qSetRealNumberPrecision', 'qSharedBuild', 'qSwap', 'qUncompress', 'qUnregisterResourceData ', 'qVersion', 'qWarning', 'qrand', 'qsrand', 'reset', 'right', 'scientific', 'showbase', 'upperc asebase', 'uppercasedigits', 'ws']


There is no QPrinter, neither QPainter, QPixmap (used on ebooks/pdf/writer.py).


As usual i'm ready to listen hints or any helpful tip.

Thanks in advance...


Edit 2: Ok so more Missing Libs, this time Linpng, freetype and fontconfig.

So to avoid someone having the same problems as me here are the required Lib for Calibre port form DNS 323 :

beautifulsoup-3.0.8.1-1.tgz
chmlib-0.40-1.tgz
cssutils-0.9.7b3-1.tgz
dnspython-1.8.0-1.tgz
fontconfig-2.8.0-1.tgz
freetype-2.4.2-1.tgz
imagemagick-6.6.4-9-1.tgz
libjpeg-6b-1.tgz
libpng-1.2.29-1.tgz
libwmf-0.2.8.4-1.tgz
libX11-1.3.2-1.tgz
libXau-1.0.5-1.tgz
libXext-1.1.1-1.tgz
libxslt-1.1.26-1.tgz
lxml-2.2.8-1.tgz
mechanize-0.2.2-1.tgz
pil-1.1.7-1.tgz
podofo-0.8.2-1.tgz
poppler-0.14.3-1.tgz
PyQT-4.7.7-1.tgz
python-2.6.4-1.tgz
python-dateutil-1.5-1.tgz
qt-4.6.3-1.tgz
sip-4.11.1-1.tgz

ebook-convert seems to work.
Now let's try calibre-smtp...

stay tuned!!

Last edited by beachsun; 11-28-2010 at 04:25 PM. Reason: Next Step....
beachsun is offline   Reply With Quote