Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2014, 04:02 AM   #1
silentfuzzle
Junior Member
silentfuzzle began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2014
Device: none
Question No module named PyQt5.Qt

Hi,

I forked the calibre source code five months ago. Last night, I decided to merge the changes to the master with the modifications I've been making to my fork. Naturally, a lot has changed in the past five months, including the change from PyQt4 to PyQt5. When running the calibre ebook reader in debug mode in the console, I'm now getting this message:

Python function terminated unexpectedly
No module named PyQt5.Qt (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "C:\Users\Emily\My Documents\GitHub\calibre\src\calibre\debug.py", line 2
36, in main
from calibre.gui2.viewer.main import main
File "C:\Users\Emily\My Documents\GitHub\calibre\src\calibre\gui2\__init__ .py"
, line 7, in <module>
from PyQt5.Qt import (
ImportError: No module named PyQt5.Qt

Similarly, if I try to run calibre or the calibre ebook viewer from the Start menu, I get an error message that says:

Python function terminated unexpectedly
No module named PyQt5.Qt (Error Code: 1)

I'm using Windows 7 x64. At the time I first got these messages, I had Python(x,y) installed, which used Python 2.7. I hunted down where to download and install PyQt5, but of course, the Windows installer was only for Python 3.4. I attempted to manually compile and build PyQt5, but, being the Python novice that I am, I grew frustrated and ended up downloading Python 3.4 and using the PyQt5 Windows installer.

In the Python 3.4 interpreter, PyQt5 seemed to have installed just fine. For example, "from PyQt5 import Qt" executes without error. When attempting to open the calibre interface, however, I'm still getting the error messages above. I've tried adding and modifying system paths from c:\Python27 to c:\Python34 to no avail.

This might be a simple Python question, but am I missing a system path or something? Why can't calibre find PyQt5?
silentfuzzle is offline   Reply With Quote
Old 08-19-2014, 04:26 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You need to install the correct 1.2 beta binary. See https://www.mobileread.com/forums/sho...d.php?t=243777
chaley is offline   Reply With Quote
Advert
Old 08-19-2014, 12:31 PM   #3
silentfuzzle
Junior Member
silentfuzzle began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2014
Device: none
Huzzah! It worked! Thank you very much. I should keep more up to date with what's going on in calibre...
silentfuzzle is offline   Reply With Quote
Reply

Tags
pyqt, pyqt5


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No module named icu favour Development 2 04-08-2014 11:37 PM
ImportError: No module named djvu canadianjameson Conversion 12 04-01-2012 11:23 PM
ImportError: No module named setup pramodxyle Development 4 03-20-2012 12:41 AM
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 10:27 PM.


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