![]() |
#1 |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Calibre installation on Ubuntu 10.0.4.1 LTS
The installation on Ubuntu 10.0.4.1 does not work
# /opt/python-2.7.1/bin/python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()" Enter the installation directory for calibre [/opt]: Will download and install calibre-0.7.54-x86_64.tar.bz2 Downloading calibre-0.7.54-x86_64.tar.bz2 100% [================================================== ================================================== ================================================== ================================================] Downloaded 47568314 bytes Checking downloaded file integrity... tar: RecordgröÃe = 8 Blöcke Extracting files to /opt/calibre ... Extracting application files... Traceback (most recent call last): File "site.py", line 56, in main File "site-packages/calibre/linux.py", line 11, in <module> File "site-packages/calibre/customize/ui.py", line 14, in <module> File "site-packages/calibre/customize/builtins.py", line 571, in <module> File "site-packages/calibre/ebooks/pdf/output.py", line 18, in <module> File "site-packages/calibre/ebooks/pdf/writer.py", line 15, in <module> File "site-packages/calibre/ebooks/pdf/pageoptions.py", line 6, in <module> ImportError: cannot import name QPrinter ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Run "calibre" to start calibre Running ebook-convert also fails badly root@h1849258:/opt/pp-server# /opt/calibre/bin/ebook-convert /opt/calibre/bin/ebook-convert: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory What to do? |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You have some library conflict. Either use the (ancient) Ubuntu calibre package, or debug further, by using the LD_DEBUG environment variable.
|
![]() |
Advert | |
|
![]() |
#3 |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
There is no version conflict in any way:
/opt/calibre$ ldd bin/ebook-convert linux-vdso.so.1 => (0x00007fff0f46a000) libcalibre-launcher.so => /opt/calibre/lib/libcalibre-launcher.so (0x00007fe550aca000) libc.so.6 => /lib/libc.so.6 (0x00007fe550741000) libpython2.7.so.1.0 => /opt/calibre/lib/libpython2.7.so.1.0 (0x00007fe550384000) /lib64/ld-linux-x86-64.so.2 (0x00007fe550cd6000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007fe550167000) libdl.so.2 => /lib/libdl.so.2 (0x00007fe54ff63000) libutil.so.1 => /lib/libutil.so.1 (0x00007fe54fd5f000) libm.so.6 => /lib/libm.so.6 (0x00007fe54fadc000) Starting ebook-convert from the console gives a segfault: /opt/calibre$ ./ebook-convert Benutzung: ebook-convert input_file output_file [options] Konvertiert ein eBook von einem Format in ein anderes. input_file ist die Eingabe und output_file ist die Ausgabe. Beide müssen als die ersten zwei Argumente des Befehls angegeben werden. Das Ausgabe-eBook-Format wird aus der Dateiendung von output_file erraten. output_file kann auch das spezielle Format .EXT sein, wobei EXT die Dateiendung der Ausgabe-Datei ist. In diesem Fall wird der Name der Ausgabe-Datei von der Eingabe-Datei abgeleitet. Beachten Sie, dass die Dateinamen nicht mit einem Anführungszeichen beginnen dürfen. Schlussendlich wird eine Ausgabe-Datei ohne Dateiendung als ein Verzeichnis behandelt, in das ein "open ebook" (OEB) bestehend aus HTML-Dateien geschrieben wird. Diese Dateien sind die Dateien, die normalerweise an das Ausgabe-Plugin weitergereicht werden. Nach der Angabe von Eingabe- und Ausgabe-Datei kann die Konvertierung durch die Angabe von verschiedenen Optionen angepasst werden. Die verfügbaren Optionen hängen ab von den Eingabe- und Ausgabe-Dateitypen. Für eine Hilfe dazu geben Sie die Eingabe- und Ausgabe-Dateien an und verwenden Sie dann die Option -h. Eine vollständige Dokumentation des Konvertierungssystems finden Sie unter http://calibre-ebook.com/user_manual/conversion.html Wann immer Sie Argumente an ebook-convert weitergeben, die Leerzeichen beinhalten, setzen Sie diese Argumente in Anführungsstriche. Options: --version show program's version number and exit -h, --help show this help message and exit Erstellt von Kovid Goyal <kovid@kovidgoyal.net> Segmentation fault Starting ebook-convert with parameters gives me this: /opt/calibre$ ./ebook-convert /tmp/xx.html /tmp/xx.epub Traceback (most recent call last): File "site.py", line 58, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 271, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 252, in create_option_parser File "site-packages/calibre/ebooks/conversion/plumber.py", line 9, in <module> File "site-packages/calibre/customize/ui.py", line 14, in <module> File "site-packages/calibre/customize/builtins.py", line 571, in <module> File "site-packages/calibre/ebooks/pdf/output.py", line 18, in <module> File "site-packages/calibre/ebooks/pdf/writer.py", line 15, in <module> File "site-packages/calibre/ebooks/pdf/pageoptions.py", line 6, in <module> ImportError: cannot import name QPrinter !? |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ldd is no way to look for library problems, use LD_DEBUG
|
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Again you have a library conflict. ldd won't show you all libraries because many (such as the Qt ones) are loaded dynamiclly at run time. This is why you need to use the environment variable.
|
![]() |
Advert | |
|
![]() |
#6 | |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Quote:
installed: root@h1849258:/# find / -name libcalibre-launcher.so /opt/calibre/lib/libcalibre-launcher.so So setting LD_LIBRARY_PATH resolved the first problem. The other problem root@h1849258:/opt/calibre# bin/ebook-convert /tmp/xx.html /tmp/xx.epub Traceback (most recent call last): File "site.py", line 58, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 271, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 252, in create_option_parser File "site-packages/calibre/ebooks/conversion/plumber.py", line 9, in <module> File "site-packages/calibre/customize/ui.py", line 14, in <module> File "site-packages/calibre/customize/builtins.py", line 571, in <module> File "site-packages/calibre/ebooks/pdf/output.py", line 18, in <module> File "site-packages/calibre/ebooks/pdf/writer.py", line 15, in <module> File "site-packages/calibre/ebooks/pdf/pageoptions.py", line 6, in <module> ImportError: cannot import name QPrinter remains.....what's with that? |
|
![]() |
![]() |
#7 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
![]() |
![]() |
#8 | |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Quote:
26995 stat("/opt/calibre/lib/python2.7/site-packages/PyQt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 26995 stat("/opt/calibre/lib/python2.7/site-packages/PyQt4/__init__.pyo", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/__init__.pyo", O_RDONLY) = 4 26995 stat("/opt/calibre/lib/python2.7/site-packages/PyQt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 26995 stat("/opt/calibre/lib/python2.7/site-packages/PyQt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/Qt.so", O_RDONLY) = 4 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/Qt.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtCore.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtGui.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtGui.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtGui.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtNetwork.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtNetwork.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtNetwork.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtOpenGL.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtOpenGL.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtScript.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtScript.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtScriptTools.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtScriptTools.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtSvg.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtSvg.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtSvg.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtGui.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtTest.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtTest.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtWebKit.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtWebKit.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtWebKit.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtGui.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtXml.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtXml.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtXml.so.4", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtXmlPatterns.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtXmlPatterns.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtDesigner.so", O_RDONLY) = 6 26995 open("/opt/calibre/lib/python2.7/site-packages/PyQt4/QtDesigner.so", O_RDONLY) = 7 26995 open("/opt/calibre/lib/libQtGui.so.4", O_RDONLY) = 8 26995 open("/opt/calibre/lib/libQtGui.so.4", O_RDONLY) = 8 |
|
![]() |
![]() |
#9 |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
In addition: there is no further QT stuff installed on the system:
/opt/calibre# find / -iname \*qt\* |grep lib /opt/python-2.7.1/lib/python2.7/test/decimaltestdata/dqToIntegral.decTest /opt/calibre/resources/localization/locales/sl/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/sk/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/fr/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/de/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/ru/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/pl/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/hu/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/gl/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/es/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/he/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/cs/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/da/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/zh_TW/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/uk/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/sv/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/pt/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/ja/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/zh_CN/LC_MESSAGES/qt.qm /opt/calibre/resources/localization/locales/ar/LC_MESSAGES/qt.qm /opt/calibre/lib/libQtWebKit.so.4 /opt/calibre/lib/qt_plugins /opt/calibre/lib/qt_plugins/imageformats/libqtiff.so /opt/calibre/lib/qt_plugins/accessible/libqtaccessiblewidgets.so /opt/calibre/lib/libQtXml.so.4 /opt/calibre/lib/python2.7/site-packages/dbus/mainloop/qt.so /opt/calibre/lib/python2.7/site-packages/PIL/ImageQt.pyo /opt/calibre/lib/python2.7/site-packages/PyQt4 /opt/calibre/lib/python2.7/site-packages/PyQt4/QtOpenGL.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtScriptTools.so /opt/calibre/lib/python2.7/site-packages/PyQt4/Qt.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtWebKit.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtCore.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtTest.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtXmlPatterns.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtScript.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtSvg.so /opt/calibre/lib/python2.7/site-packages/PyQt4/uic/Compiler/qtproxies.pyo /opt/calibre/lib/python2.7/site-packages/PyQt4/uic/widget-plugins/qtwebkit.pyo /opt/calibre/lib/python2.7/site-packages/PyQt4/uic/widget-plugins/qtdeclarative.pyo /opt/calibre/lib/python2.7/site-packages/PyQt4/QtXml.so /opt/calibre/lib/python2.7/site-packages/PyQt4/pyqtconfig.pyo /opt/calibre/lib/python2.7/site-packages/PyQt4/QtNetwork.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtGui.so /opt/calibre/lib/python2.7/site-packages/PyQt4/QtDesigner.so /opt/calibre/lib/libQtCore.so.4 /opt/calibre/lib/libQtNetwork.so.4 /opt/calibre/lib/libQtDBus.so.4 /opt/calibre/lib/libQtSvg.so.4 /opt/calibre/lib/libQtGui.so.4 /usr/lib/apache2/modules/mod_reqtimeout.so /lib/modules/2.6.32-28-server/kernel/drivers/media/common/tuners/qt1010.ko /lib/modules/2.6.32-28-server/kernel/drivers/staging/serqt_usb2 /lib/modules/2.6.32-28-server/kernel/drivers/staging/serqt_usb2/serqt_usb2.ko /lib/modules/2.6.32-30-server/kernel/drivers/media/common/tuners/qt1010.ko /lib/modules/2.6.32-30-server/kernel/drivers/staging/serqt_usb2 /lib/modules/2.6.32-30-server/kernel/drivers/staging/serqt_usb2/serqt_usb2.ko /lib/modules/2.6.32-25-server/kernel/drivers/media/common/tuners/qt1010.ko /lib/modules/2.6.32-25-server/kernel/drivers/staging/serqt_usb2 /lib/modules/2.6.32-25-server/kernel/drivers/staging/serqt_usb2/serqt_usb2.ko /lib/modules/2.6.32-27-server/kernel/drivers/media/common/tuners/qt1010.ko /lib/modules/2.6.32-27-server/kernel/drivers/staging/serqt_usb2 /lib/modules/2.6.32-27-server/kernel/drivers/staging/serqt_usb2/serqt_usb2.ko /lib/modules/2.6.32-29-server/kernel/drivers/media/common/tuners/qt1010.ko /lib/modules/2.6.32-29-server/kernel/drivers/staging/serqt_usb2 /lib/modules/2.6.32-29-server/kernel/drivers/staging/serqt_usb2/serqt_usb2.ko /srv/www/Plone4/Python-2.6/lib/python2.6/test/decimaltestdata/dqToIntegral.decTest /srv/www/tqmsoftware.baks/Python-2.6/lib/python2.6/test/decimaltestdata/dqToIntegral.decTest /srv/www/testplone/Python-2.6/lib/python2.6/test/decimaltestdata/dqToIntegral.decTest /srv/www/tqmsoftware/Python-2.6/lib/python2.6/test/decimaltestdata/dqToIntegral.decTest |
![]() |
![]() |
#10 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Don't use Ubuntu as it appears it cannot load shared libraries / python modules properly.
|
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sigh, you're running the binaries from the bin subfolder. WHy are you doing that
run /opt/calibre/calibre not /opt/calibre/bin/calibre |
![]() |
![]() |
#12 | |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Quote:
The strace output was generated from strace -f -oout bin/ebook-convert /tmp/xx.html /tmp/xx.epub And the output clearly shows you that there is **NO** conflict. All libs etc used are from Calibre - or? |
|
![]() |
![]() |
#13 |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
|
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then I'm out of ideas, since you refuse to actually provide the information I asked for, good luck with getting calibre to work.
Last edited by kovidgoyal; 04-14-2011 at 01:20 PM. |
![]() |
![]() |
#15 |
Banned
![]() Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
|
Bad operation system support...
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre installation on Ubuntu 8.0.4 | yet | Devices | 11 | 04-02-2011 12:37 AM |
Calibre 0.6.48 on Ubuntu 9.10 -- installation failed | lenik | Calibre | 8 | 04-28-2010 09:26 PM |
installation of calibre | tblackt | Calibre | 2 | 11-01-2009 07:25 PM |
Calibre on Ubuntu 8.04 - installation failed | kostap | Calibre | 25 | 03-26-2009 11:45 PM |
libprs500 installation on Ubuntu 7.10 | bralec | Calibre | 1 | 03-27-2008 09:50 AM |