I am trying to run Calibre from source on Windows (under Eclipse). When I choose run on (for instance) server.py, I get an error that states:
Code:
Traceback (most recent call last):
File "C:\calibre\src\calibre\library\server.py", line 17, in <module>
from PyQt4.Qt import QImage, QApplication, QByteArray, Qt, QBuffer
ImportError: cannot import name QImage
That is one of the imports mentioned in that module, but I do not know why it is missing. There is a Qt.pyd file in the PyQt4 folder and I do have the folder C:\Python26\Lib\site-packages\PyQt4 on the search path. I am guessing that this means there is something missing in the way the environment was built, probably for PyQt4? Should I simply rebuild PyQt4 not specifying specific packages? Alternatively I guess it could be something to do with the way Qt was built?
I want to be able to run from source as it should make it easier to investigate why some dialogs are not disappearing as they should on completing their action.