From: Maurice L. <mj...@ga...> - 2002-12-26 02:05:00
|
Alan W. Irwin writes: > On Wed, 25 Dec 2002, Maurice LeBrun wrote: > > > BTW does this work for anyone? > > > > ged$ ./prova.py > > Traceback (most recent call last): > > File "./prova.py", line 9, in ? > > from qt import * > > ImportError: No module named qt > > > > I followed the prescription for finding libqt but it didn't work. > > > > ged$ echo $LD_LIBRARY_PATH > > .:/home/mjl/gts/lib:/usr/lib/qt-3.0.3/lib > > > > ged$ ll -L /usr/lib/qt-3.0.3/lib/libqt.so > > -rwxr-xr-x 1 root root 7644546 Apr 16 2002 /usr/lib/qt-3.0.3/lib/libqt.so > > Yes, works for me. qt refers to the python module > (/usr/lib/python2.1/site-packages/qt.py(o)), not the qt library. The module > is in the python-pyqt package on Debian. I don't know what that package is > named on RedHat, but you should be able to find it using rpmfind on qt.py. > > You will also need libsip. OK, I found it on my RH7.3 system in the python1.5 install. But unfortunately, not under python2.2. Probably the biggest flaw of RH7.3 in my book is this split python distribution. There's no rpm specifically for RH7.3 & python2.2 either, so instead of installing from source I'm trying the default python1.5. There's a problem with the configuration under bindings/python. It locates /usr/bin/python which is 1.5 but otherwise gets the 2.2 libraries which of course won't work. From bindings/python/Makefile: PYTHON = /usr/bin/python PYTHON_CFG_DIR = /usr/lib/python2.2/config PYTHON_DIR = /home/mjl/tools/lib/python2.2/site-packages PYTHON_EXEC_PREFIX = ${exec_prefix} PYTHON_INC_DIR = /usr/include/python2.2 PYTHON_INSTDIR = lib/python2.2/site-packages PYTHON_MACH_DIR = /usr/lib/python2.2/site-packages PYTHON_MOD_DIR = /usr/lib/python2.2 PYTHON_NUM_DIR = /usr/include/python2.2/Numeric PYTHON_PLATFORM = linux-i386 PYTHON_PREFIX = ${prefix} PYTHON_VERSION = 1.5 Ugh. I'll look into it a little more but am about out of time to spend on this problem. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |