Hello all, i'm new to pyQt and am having trouble getting it to work. i have python2.4, qt4 and sip4 installed on my system (debian etch; upgraded from sarge to etch in the hope that this problem will go away, but it didn't), but i get the following error:-
import qt
Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named qt
googling around for 2 days, gave me one useful link:- http://mats.gmd.de/pipermail/pykde/2004-July/008172.html
so i removed all traces of python2.3 (see point 2 in above link), and finally am left with following packages:- pyqt:- pyqt-tools, pyqt4-dev-tools, python-qt-dev, python-qt4, python-qt4-dev, python2.3-qt4 (virtual, dunno why this is still there, can't remove it though), python2.4-qt4 (virtual, dunno why this is still there) qt:- qt4-dev-tools, qt4-designer, libqt4-dev, libqt4-core, libqt4-gui, libqt4-qt3support, libqt4-sql, qt4-qtconfig, sip4:- sip4, python-sip4, python-sip4-dev, python2.3-sip4 (virtual, dunno why this is still there, can't remove it though), python2.4-sip4 (virtual)
then i searched for site-packages:- $ locate site-pack | grep pyqt /usr/lib/python2.3/site-packages/PyQt4/pyqtconfig.py /usr/lib/python2.4/site-packages/PyQt4/pyqtconfig.py /usr/lib/python2.4/site-packages/PyQt4/pyqtconfig.pyc
checked the sys.path variable in python
import sys print sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/var/lib/python-support/python2.4']
appended path obtained in locate (above) to sys.path
sys.path.append('/usr/lib/python2.4/site-packages/PyQt4') print sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/var/lib/python-support/python2.4', '/usr/lib/python2.4/site-packages/PyQt4']
but still i have the same problem
import qt
Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named qt
i hope i've provided enough details