[PyKDE] libqassistantclient
Ulrich Berning
ulrich.berning at t-online.de
Thu May 18 22:19:38 BST 2006
Aaron BRICE schrieb:
>
>Thanks, after that the compile works ok. However, when I run a test
>script, I get:
>
>Traceback (most recent call last):
> File "./autoTool.py", line 4, in ?
> from qt import *
>ImportError: Failed to load
>/automation/python2.4/lib/python2.4/site-packages/qt.sl
>
>The path is correct there. Doesn't seem to be a permission problem. I
>ran ldd on the qt.sl and it shows:
> /usr/lib/X11R6/libX11.3 => /usr/lib/X11R6/libX11.3
> /usr/lib/X11R6/libXext.3 => /usr/lib/X11R6/libXext.3
> /usr/lib/libpthread.1 => /usr/lib/libpthread.1
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/libc.2 => /usr/lib/libc.2
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/X11R6/libICE.2 => /usr/lib/X11R6/libICE.2
> /usr/lib/X11R6/libSM.2 => /usr/lib/X11R6/libSM.2
> /automation/usr/lib/qt3.3/lib/libqt-mt.3 =>
>/automation/usr/lib/qt3.3/lib/libqt-mt.3
> /usr/lib/libpthread.1 => /usr/lib/libpthread.1
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/X11R6/libICE.2 => /usr/lib/libICE.2
> /usr/lib/X11R6/libSM.2 => /usr/lib/libSM.2
> /usr/lib/X11R6/libX11.3 => /usr/lib/libX11.3
> /usr/lib/X11R6/libXext.3 => /usr/lib/libXext.3
> /usr/lib/libm.2 => /usr/lib/libm.2
> /usr/lib/libm.2 => /usr/lib/libm.2
>
>Which looks ok, anything else I can do to get more information on why it
>can't load the qt.sl?
>
>
Did you follow the advices in README.HP-UX from SIP?
Did you build Python with the configure option "--with-cxx=aCC"? HP-UX
can only load C++ shared libraries or C++ shared objects, if the main
program is a C++ program.
Did you install at least the cumulative linker and tools patch
PHSS_30967 or a successor? This linker patch seems to be important.
If you did all this, I can't see why it shouldn't work.
Have you tried python -v or python -vv to see if shl_load() or
shl_findsym() give an error message?
---
Ulli
More information about the PyQt
mailing list