I have built PyQt4 from source and everything went smoothly until I tried to use some of the classes and attributes located in QtCore. For some reason QtCore is missing a lot of functionality and data that should be there. For example from PyQt4.QtCore import QT_VERSION_STR is an import error. There were no errors or warnings given when building the packages and I have also tried with the PyQt packages from yum but I have the same problem.
Has anyone else encountered this problem before?
Thanks.
If it's really an ImportError, that suggests that it's failing to import the library altogether. Check that it's definitely somewhere that's in your sys.path, and that from PyQt4 import QtCore works.
If the library exists, and QT_VERSION_STR doesn't exist, it will give you a NameError rather than an ImportError.
PyQt4.QtCore doesn't contain many of its classes and attributes