Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2015, 06:30 AM   #1
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
ImportError: No module named PyQT4

Hi,

This is the message I get when I want to set Preferences > Conversion > Output options on Ubuntu Studio 14.04 64-bit.

Whereis python gives:
Code:
python: /usr/bin/python3.4m /usr/bin/python3.4 /usr/bin/python2.7 /usr/bin/python /etc/python3.4 /etc/python2.7 /etc/python /usr/lib/python3.4 /usr/lib/python2.7 /usr/bin/X11/python3.4m /usr/bin/X11/python3.4 /usr/bin/X11/python2.7 /usr/bin/X11/python /usr/local/lib/python3.4 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz
which Python:
Code:
/usr/bin/python
import PyQt4 hangs till i click somewhere on the desktop.

???

Thanks.
Francois_C is offline   Reply With Quote
Old 02-07-2015, 06:43 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,937
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
You've either found a bug in calibre, or more likely you have a plugin that hasn't been updated to use the PyQt5 that calibre now uses instead of PyQt4.

Check your plugins.
pdurrant is offline   Reply With Quote
Advert
Old 02-07-2015, 12:12 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
That indicates an (longish) out of date PI. Calibre 2.x requires QT5 compatible PI.

If there is an updated PI for a PI listed at the top of this forum, it will show on the Get Plugins: Update tab

If the PI was obtained elsewhere (or not in the index), you need to get the update there.
Your other choice is to rollback Calibre to pre 2.x
theducks is offline   Reply With Quote
Old 02-08-2015, 12:50 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What is the specific error message? There should be a popup box with the message. If not, running calibre via the command "calibre-debug -g" will get you a log of everything.

I am guessing the issue is probably an out-of-date plugin.
The error message should include where that message was triggered, probably somewhere in a plugin's code.
eschwartz is offline   Reply With Quote
Old 02-13-2015, 07:57 AM   #5
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Thanks everybody. I'll check my plugins when I'm back to Linux (now working on Windows). But I think my plugins are almost the same as on Windows. The oldest ones are probably Inept Epub and so on, which are not supported here, but don't cause errors on the Win version.
The only error message is in my title, eschwatz: ImportError: No module named PyQT4.
Francois_C is offline   Reply With Quote
Advert
Old 02-13-2015, 07:59 AM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,937
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Francois_C View Post
Thanks everybody. I'll check my plugins when I'm back to Linux (now working on Windows). But I think my plugins are almost the same as on Windows. The oldest ones are probably Inept Epub and so on, which are not supported here, but don't cause errors on the Win version.
The only error message is in my title, eschwatz: ImportError: No module named PyQT4.
Inept Epub is too old for calibre 2.x. You should get the latest tools from Apprentice Alf's blog.
pdurrant is offline   Reply With Quote
Old 02-13-2015, 10:47 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Francois_C View Post
Thanks everybody. I'll check my plugins when I'm back to Linux (now working on Windows). But I think my plugins are almost the same as on Windows. The oldest ones are probably Inept Epub and so on, which are not supported here, but don't cause errors on the Win version.
The only error message is in my title, eschwatz: ImportError: No module named PyQT4.
Yeah, Inept EPUB etc. are too old.

Also, usually there would be a button "Show details", but calibre-debug -g would definitely log it -- the goal is to get a traceback showing which functions led to the ImportError, likely a plugin reference.
You can try that if updating to the latest Alf tools doesn't stop the error.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named PyQt4 miglanc Conversion 8 09-11-2014 12:51 AM
ImportError: No module named djvu canadianjameson Conversion 12 04-01-2012 11:23 PM
Error on install: No module named PyQt4 good_man Calibre 4 02-18-2011 03:10 PM
ImportError: No module named profiles ould Calibre 11 02-28-2009 07:25 PM
ImportError: No module named pkg_resources erik80 Calibre 3 08-02-2008 09:33 AM


All times are GMT -4. The time now is 05:28 PM.


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