PyQt install problem
Bruce Wolk
bawolk at ucdavis.edu
Thu Aug 9 00:02:53 EDT 2001
Excellent advice. I changed the QTDIR environment variable to point to
/usr/lib/qt-2.3.0 and now I have a working version of PyQt. I still get the
warning
Xlib: extension "RENDER" missing on display ":0.0".
but the examples seem to run. I can live with that. Thanks so much for your
help. By the way, I am really looking forward to your book. Python and Qt make a
phenomenal combination and hopefully your book will help spread the word.
Cheers, Bruce
Boudewijn Rempt wrote:
> Bruce Wolk <bawolk at ucdavis.edu> wrote:
> > Good suggestion. When I run ldd on libqtcmodule.so as root and as user I get
> > different results for libqt.so.2:
>
> > root
> > libqt.so.2 => /usr/lib/qt-2.3.0/lib/libqt.so.2 (0x40505000)
> > user
> > libqt.so.2 => /usr/local/qt/lib/libqt.so.2 (0x404f6000)
>
> > I don't understand why this is so. It seems that the qt libraries are in
> > fact in both locations--both version 2.3. I am not sure how that happened.
> > So what should I do now?
>
> > I also get many additional libraries as root that I don't get as user:
>
> > libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x40ec9000)
> > libpng.so.2 => /usr/lib/libpng.so.2 (0x40eee000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x40f0f000)
> > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40f1e000)
> > libmng.so.1 => /usr/lib/libmng.so.1 (0x40f3d000)
> > libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x41018000)
> > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4101e000)
>
> This is logical and consistent with your earlier report. The Qt root
> uses (which is presumably part of your OS installation) is compiled to
> support Xft - the new, anti-aliased font protocol for X. Your X doesn't
> support that (or it does, but your graphics card doesn't), and that
> causes the error message you get when you run PyQt apps as root.
>
> However, I'd search your user account configuration (particularly
> .bashrc) for references to /usr/local/qt... - I think you might have
> compiled and installed a qt as a user, and set the qt directory to that
> place.
>
> It might be best to just remove the qt in /usr/local and let everything
> point to the one in /usr.
> --
>
> Boudewijn Rempt | http://www.valdyas.org
More information about the Python-list
mailing list