PyQt4.QtCore doesn't contain many of its classes and attributes?

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.

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.

The library does exist, I can import it but some functionality is missing such as QT_VERSION_STR. It gives an import error but as you said maybe it should give a name error. If I try to access it as PyQt4.QtCore.

QT_VERSION_STR it does give an attribute error. I think this is a build issue with PyQt4 but it gives no errors to suggest so. – toc777 Dec 21 '10 at 15:33 Well, if you just import PyQt4, it will give you an attribute error, because that doesn't pull QtCore in.

But if your distro's packages are the same, it suggests there's something else wrong. Does from PyQt4 import QtCore work? Then what does dir(QtCore) give?

– Thomas K Dec 21 '10 at 15:48 I can import QtCore and using dir on it gives me only part of the functionality that should be there. I seem to get all the functions but none of the classes or global attributes. – toc777 Dec 21 '10 at 17:25.

The reason for this problem was a conflict in my python path. I had two modules named sip. Py in different locations on my python path, the python path was using the first one but I wanted it to use the second one.

I removed the first entry from the python path as it wasn't necessary.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions