PyQt file locations

Bruce Wolk bawolk at ucdavis.edu
Tue Feb 27 22:20:11 EST 2001


I have the same files in my site-packages directory, except for qt.pyc.

make-install gave me some errors:
_______________________________

Making install in qt
make[1]: Entering directory `/home/bruce/down/PyQt-2.3/qt'
make[2]: Entering directory `/home/bruce/down/PyQt-2.3/qt'
/bin/sh ../mkinstalldirs /usr/local/lib/python2.0/site-packages
/bin/sh ../libtool  --mode=install /usr/bin/install -c libqtcmodule.la
/usr/local/lib/python2.0/site-packages/libqtcmodule.la
/usr/bin/install -c .libs/libqtcmodule-2.3.so
/usr/local/lib/python2.0/site-packages/libqtcmodule-2.3.so
(cd /usr/local/lib/python2.0/site-packages && rm -f libqtcmodule.so && ln
-s libqtcmodule-2.3.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.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /usr/local/lib/python2.0/site-packages
 /usr/bin/install -c -m 644 ./qt.py
/usr/local/lib/python2.0/site-packages/qt.pymake  install-data-hook
make[3]: Entering directory `/home/bruce/down/PyQt-2.3/qt'
(cd /tmp;
PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
python -O -c "import qt")
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/qt.py", line 43, in ?
    import libqtc
ImportError: libsip.so.4: cannot open shared object file: No such file or
directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/bruce/down/PyQt-2.3/qt'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/bruce/down/PyQt-2.3/qt'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/bruce/down/PyQt-2.3/qt'
make: *** [install-recursive] Error 1
________________________

When I try to run the examples, I get the same ImportError.

Any ideas?

Bruce


Aaron Ginn wrote:

> Bruce Wolk <bawolk at ucdavis.edu> writes:
>
> > I installed the PyQt bindings and SIP on my RH 6.2 Linux system.
> > Everything compiled quite nicely.  But the files do not appear to have
> > been placed in the correct subdirectories.  None of the samples will
> > run.  Where should the qt directory containing qt.py be located?  I
> > tried moving it to the site-packages directory, but that didn't work.
> >
> > Thanks.
> >
> > Bruce
>
> Here's what's in my site-packages directory:
>
> ginn at coronado ginn $ ls python-2.0/lib/python2.0/site-packages/
> README                libqtcmodule-2.3.so*  libqtcmodule.so@      qt.pyc
> eric/                 libqtcmodule.la*      qt.py                 qt.pyo
>
> You can't simply move the qt directory there, as there are many more
> files than what are in my site-packages directory.  Shouldn't 'make
> install' have taken care of this for you?  What happened when you did
> a make install?
>
> --
> Aaron J. Ginn                    Phone: 480-814-4463
> Motorola SemiCustom Solutions    Pager: 877-586-2318
> 1300 N. Alma School Rd.          Fax  : 480-814-4463
> Chandler, AZ 85226 M/D CH260     mailto:aaron.ginn at motorola.com




More information about the Python-list mailing list