PyQt file locations

Bruce Wolk bawolk at
Wed Feb 28 04:20:11 CET 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
/usr/bin/install -c .libs/
(cd /usr/local/lib/python2.0/site-packages && rm -f && ln
/usr/bin/install -c .libs/libqtcmodule.lai
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/python2.0/site-packages
Libraries have been installed in:

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/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.
/bin/sh ../mkinstalldirs /usr/local/lib/python2.0/site-packages
 /usr/bin/install -c -m 644 ./
/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;
python -O -c "import qt")
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/", line 43, in ?
    import libqtc
ImportError: cannot open shared object file: No such file or
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?


Aaron Ginn wrote:

> Bruce Wolk <bawolk at> 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 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      *      qt.pyc
> eric/       *                 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

More information about the Python-list mailing list