![]() |
Commandline only build
I'm thinking about running calibre on my little server (a DNS-323 which runs linux). I've other python programs running okay.
I don't need the GUI, of course, just the server part running so that feeds are downloaded overnight and emailed to my kindle. Is this possible ? I tried building calibre on the DNS-323 but I see :- $ python setup.py Traceback (most recent call last): File "setup.py", line 13, in <module> import setup.commands as commands File "/mnt/HD_a2/home/plord/src/calibre/calibre/setup/commands.py", line 28, in <module> from setup.translations import POT, GetTranslations, Translations, ISO639 File "/mnt/HD_a2/home/plord/src/calibre/calibre/setup/translations.py", line 14, in <module> from setup.build_environment import pyqt File "/mnt/HD_a2/home/plord/src/calibre/calibre/setup/build_environment.py", line 12, in <module> from PyQt4 import pyqtconfig ImportError: No module named PyQt4 which is true ... there isn't any QT installed. Is it possible to have a server-only version of calibre ? Many thanks, Pete |
Quote:
If I recall correctly, you do need QT libraries even to build a commandline-only version. QT provides much more than GUI components. |
The previous discussion essentially said that you have to do a full install, but can run a lot of the stuff from the command line. In other words, if you have plenty of disk space and you don't mind installing a bunch of dependencies, it'll be pretty useful.
However, if you don't have lots of disk space, or don't want lots of extra stuff on a server that has other important jobs, it won't be so great. |
plenty of diskspace? A calibre install is about 100MB. And the binary install of calibre is completely self contained so you dont need *any* dependencies, except a reasonably recent glibc.
|
Fair enough, but according to the calibre binary download page, you do need xdg-utils installed, which means a complete installation of x.org (which when I quickly checked for my ubuntu server would mean about 50 additional mb).
I guess you are right that these days a total 150 mb is not much... |
xdg-utils are a bunch of shell scripts, you don't need x.org installed for them. And anyway if you dont have xdg-utils installed, the calibre installer will simply not install desktop integration. The rest of the install will work fine.
|
Thanks for the quick update. I'll definitely be giving this a try!
|
To followup on my initial post, I've now managed to build calibre on my DNS-323. Its then a simple case to write cron scripts (which uses ebook-convert, calibre-smtp and calibredb ) to create periodicals overnight and send them to my kindle via wispernet. Nice :-)
If anyone is interested my (fun-plug based) builds are available here http://www.plord.co.uk/funplug/0.5/ See also http://wiki.dns323.info/ Pete |
awesome. could you post a sample script? i am trying to do the same thing using a windows batch file to download, add to db and email to my kindle.
|
Nothing fancy at the moment :-
Code:
#!/ffp/bin/sh |
Calibre : Cannot use .so modules from python
Hi plord,
i'm trying to use your fun-plug Calibre packages on my dns-323, but i'm having an error when calling ebook-convert on file ebooks/epub/input.py on the line "from lxml import etree". I have installed the lxml package from your repository, in fact i've installed every package is declared requisite on Calibre Download Linux page that exist on your repository, but it's like python cannot load etree.so from the path where is it. any hint? have i missed any path on any enviroment variable? Best Regards. |
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!! |
| All times are GMT -4. The time now is 06:02 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.