Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2014, 05:48 AM   #1
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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
I get the following error:
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
How do I have to change my scripts so I can fetch news again?

Regards,
Sebastian
sws is offline   Reply With Quote
Old 09-03-2014, 06:04 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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"
kovidgoyal is offline   Reply With Quote
Advert
Old 09-03-2014, 06:38 AM   #3
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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
Regards,
Sebastian
sws is offline   Reply With Quote
Old 09-03-2014, 06:58 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-03-2014, 07:12 AM   #5
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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:
I took the last last entry that looked sober followed by the error code.

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
sws is offline   Reply With Quote
Advert
Old 09-03-2014, 07:15 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-03-2014, 07:37 AM   #7
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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
Attached Files
File Type: txt qt5_error.txt (38.1 KB, 102 views)

Last edited by sws; 09-03-2014 at 07:45 AM.
sws is offline   Reply With Quote
Old 09-03-2014, 09:34 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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"
kovidgoyal is offline   Reply With Quote
Old 09-03-2014, 10:36 AM   #9
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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
The last line says: Cannot open shared opject file. File or directory not found.

Verified with
Code:
find / -name libGL.so* -print
that this library is not present. So which library do I need to install? OpenGL?

Regards,
Sebastian
sws is offline   Reply With Quote
Old 09-03-2014, 12:03 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-03-2014, 02:26 PM   #11
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
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
and the newsfeed works again as usual.

Thank you very much for debugging.

Yours,
Sebastian

OT: Why do we need OpenGL hardware acceleration for converting ebboks?
sws is offline   Reply With Quote
Old 09-03-2014, 02:28 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-03-2014, 03:05 PM   #13
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
O.K., thanks again.

Until next time
sws is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:12 PM.


MobileRead.com is a privately owned, operated and funded community.