09-03-2014, 05:48 AM | #1 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
Fetching recpies fails after upgrade to 2.1
My automated scripts fail since I upgraded calibre to 2.1.
Whenever I try to fetch news, f.e.: Code:
ebook-convert /home/sws/calibre-recipes/telegraph_uk.recipe telegraph_uk.epub --output-profile=generic_eink && ebook-meta telegraph_uk.epub --tag Tageszeitung && calibredb add telegraph_uk.epub Code:
1% Eingabe zu HTML konvertieren ... InputFormatPlugin: Recipe Input running Traceback (most recent call last): File "site.py", line 51, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 359, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 1041, in run File "site-packages/calibre/customize/conversion.py", line 241, in __call__ File "site-packages/calibre/ebooks/conversion/plugins/recipe_input.py", line 57, in convert File "site-packages/calibre/web/feeds/recipes/__init__.py", line 10, in <module> File "site-packages/calibre/web/feeds/jsnews.py", line 17, in <module> File "site-packages/calibre/web/fetch/javascript.py", line 17, in <module> File "site-packages/calibre/web/jsbrowser/browser.py", line 14, in <module> ImportError: cannot import name QDialog Regards, Sebastian |
09-03-2014, 06:04 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That doesn't have anything to do with your script, it looks like a corrupted install, try running:
calibre-debug -c "from PyQt5.Qt import QDialog; print QDialog" |
Advert | |
|
09-03-2014, 06:38 AM | #3 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
Hello Kovid,
that was a quick one, thanks This is the output: Code:
Traceback (most recent call last): File "site.py", line 51, in main File "site-packages/calibre/debug.py", line 228, in main File "<string>", line 1, in <module> ImportError: cannot import name QDialog Sebastian |
09-03-2014, 06:58 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah something is prevent the Qt libraries from loading on your system. You can try running that command with
LD_DEBUG=libs calibre-debug -c "from PyQt5.Qt import QDialog; print QDialog" That will give you more debugging info. |
09-03-2014, 07:12 AM | #5 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
O.K: this is what I got at the end:
Code:
2208: find library=libQt5Gui.so.5 [0]; searching 2208: search path=/opt/calibre/lib (LD_LIBRARY_PATH) 2208: trying file=/opt/calibre/lib/libQt5Gui.so.5 2208: 2208: find library=libGL.so.1 [0]; searching 2208: search path=/opt/calibre/lib (LD_LIBRARY_PATH) 2208: trying file=/opt/calibre/lib/libGL.so.1 2208: search cache=/etc/ld.so.cache 2208: search path=/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu/i686/cmov:/usr/lib/i386-linux-gnu/i686:/usr/lib/i386-linux-gnu:/lib:/usr/lib/i686/cmov:/usr/lib/i686:/usr/lib/sse2:/usr/lib (system search path) 2208: trying file=/lib/i386-linux-gnu/libGL.so.1 2208: trying file=/usr/lib/i386-linux-gnu/i686/cmov/libGL.so.1 2208: trying file=/usr/lib/i386-linux-gnu/i686/libGL.so.1 2208: trying file=/usr/lib/i386-linux-gnu/libGL.so.1 2208: trying file=/lib/libGL.so.1 2208: trying file=/usr/lib/i686/cmov/libGL.so.1 2208: trying file=/usr/lib/i686/libGL.so.1 2208: trying file=/usr/lib/sse2/libGL.so.1 2208: trying file=/usr/lib/libGL.so.1 2208: Traceback (most recent call last): File "site.py", line 51, in main File "site-packages/calibre/debug.py", line 228, in main File "<string>", line 1, in <module> ImportError: cannot import name QDialog 2208: 2208: calling fini: /opt/calibre/bin/calibre-debug [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libcalibre-launcher.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/operator.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_functools.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_locale.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/time.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/math.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/binascii.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_hashlib.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libssl.so.1.0.0 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libcrypto.so.1.0.0 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_random.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/future_builtins.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/itertools.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_collections.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_heapq.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/fcntl.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_io.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/cStringIO.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/cPickle.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_struct.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/calibre/plugins/speedup.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/grp.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/strop.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/zlib.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/calibre/plugins/icu.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libicuio.so.53 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/datetime.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/lib-dynload/_json.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/../lib/libpython2.7.so.1.0 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/libutil.so.1 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/PyQt5/Qt.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/PyQt5/QtCore.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/sip.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/python2.7/site-packages/PyQt5/QtNetwork.so [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libQt5Network.so.5 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libQt5Core.so.5 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libicui18n.so.53 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libicuuc.so.53 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/libdl.so.2 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libgthread-2.0.so.0 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libglib-2.0.so.0 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libiconv.so.2 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/librt.so.1 [0] 2208: 2208: 2208: calling fini: /usr/lib/i386-linux-gnu/libstdc++.so.6 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/libgcc_s.so.1 [0] 2208: 2208: 2208: calling fini: /opt/calibre/lib/libz.so.1 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/libm.so.6 [0] 2208: 2208: 2208: calling fini: /lib/i386-linux-gnu/libpthread.so.0 [0] 2208: BTW: I regularly install directly from the calibre website copying the code for Linux installation, so no package management from distribution is used. System is Debian Wheezy. Regards, Sebastian |
Advert | |
|
09-03-2014, 07:15 AM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to look for errors further up, look for the word error or warning in the log.
|
09-03-2014, 07:37 AM | #7 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
Looked through the whole log output. Cannot find any entry with error or warning, sorry. Error log attached.
Regards, Sebastian Last edited by sws; 09-03-2014 at 07:45 AM. |
09-03-2014, 09:34 AM | #8 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And what does this output
calibre-debug -c "from PyQt5.QtWidgets import QDialog" |
09-03-2014, 10:36 AM | #9 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
Ah, we are getting somewhere!
Code:
Traceback (most recent call last): File "site.py", line 51, in main File "site-packages/calibre/debug.py", line 228, in main File "<string>", line 1, in <module> ImportError: libGL.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden Verified with Code:
find / -name libGL.so* -print Regards, Sebastian |
09-03-2014, 12:03 PM | #10 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need something that provides that library, the exact package name will depend on your distro.
|
09-03-2014, 02:26 PM | #11 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
Right you are, Kovid. As for debian servers it took:
Code:
apt-get install libgl1-mesa-glx Thank you very much for debugging. Yours, Sebastian OT: Why do we need OpenGL hardware acceleration for converting ebboks? |
09-03-2014, 02:28 PM | #12 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need it, Qt WebKit links against it, so you need the library to exist. It wont actually be used.
|
09-03-2014, 03:05 PM | #13 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
|
O.K., thanks again.
Until next time |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch (with jb) fails to upgrade to 5.0.3 | mad77 | Kindle Developer's Corner | 5 | 02-09-2012 02:46 AM |
upgrade fails on initial setup | mvox | Kobo Tablets | 11 | 11-15-2011 10:09 AM |
Calibre fails with proxy after upgrade | John H | Devices | 3 | 08-09-2011 09:47 AM |
calibre 0.6.17 fails to upgrade | booksonthemove | Calibre | 11 | 10-19-2009 05:14 PM |
Calibre fails to start after upgrade | njw7 | Calibre | 0 | 12-18-2008 05:41 AM |