[PyKDE] PyQt install problem on Linux

Erlend V Bøe eboe at imolinfo.it
Fri Oct 20 17:44:56 BST 2000


(I'm not (yet) a memeber of the PyQt/kde list, mail me directly)

Hi, I'm having a problem trying to install pyqt on my linux machine

System: Linux-Mandrake 7, Python 2.0 (qt 1.44,  gcc --version = 2.95.2,
latest sip, pyqt from the download page (not cvs)

When I try to do a make install, (after a successful make), I get

make  install-data-hook
make[3]: Entering directory `/usr/local/PyQt-2.1/qt'
(cd /tmp;
PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
python -c "import qt")
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/qt.py", line 16, in ?
    import libqtc
ImportError: /usr/local/lib/libsip.so.3: undefined symbol: PyObject_Init



That looks to me like I have the wrong sip? Even if it was the one from
the download page..

Erlend


more complete output below:
------------------
(cd /usr/local/lib/python2.0/site-packages && rm -f libqtcmodule.so &&
ln
 -s libqtcmodule-2.1.so libqtcmodule.so)
/usr/bin/install -c .libs/libqtcmodule.lai
/usr/local/lib/python2.0/site-
packages/libqtcmodule.la
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/python2.0/site-packages
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/python2.0/site-packages

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
 /usr/bin/install -c -m 644 ./qt.py
/usr/local/lib/python2.0/site-packages/qt.py
make  install-data-hook
make[3]: Entering directory `/usr/local/PyQt-2.1/qt'
(cd /tmp;
PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
python -c "import qt")
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/qt.py", line 16, in ?
    import libqtc
ImportError: /usr/local/lib/libsip.so.3: undefined symbol: PyObject_Init

make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/usr/local/PyQt-2.1/qt'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/usr/local/PyQt-2.1/qt'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/local/PyQt-2.1/qt'
make: *** [install-recursive] Error 1
[root at evb PyQt-2.1]#





More information about the PyQt mailing list