PyQt on a Server

Jerry Sievers jerry at jerrysievers.com
Mon Nov 29 11:07:48 EST 2004


Bob Parnes <rparnes at megalink.net> writes:

> I have an application importing qt on a linux server and am missing 
> something in trying to run it from a workstation via nfs. The 
> workstation has the server /usr directory mounted to its own /usr 
> directory, so it can access the necessary files. The error I get is
> 
> Traceback (most recent call last):
>   File "/demo/revenues.py", line 24, in ?
>     from qt import *
>   File "/usr/lib/python2.3/site-packages/qt.py", line 24, in ?
>     import libsip
> ImportError: libXrender.so.1: cannot open shared object file: 
>   No such file or directory
> 
> I can see the file in /usr/X11R6/lib. So maybe there is a path variable
> that qt.py uses and that has to be set on the workstation. If so, I don't 
> know how to find it. Thanks for any help.


LD_LIBRARY_PATH=/usr/X11R6/lib

or if the LD_LIBRARY_PATH exists already, append to it;

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib

then

export LD_LIBRARY_PATH

Now try running your Python script and see if this helps.  If so, read
about ld.config and add that lib to the standard config on the
workstation if you plan on having that NFS mount all the time.

You might also check to insure that the lib that you are "seeing" is
actually a file and not a symlink to nowhere and that the file has
appropriate perms for a shared lib r-x is typical.

HTH

> 
> Bob
> 
> -- 
> Bob Parnes
> rparnes at megalink.net

-- 
-------------------------------------------------------------------------------
Jerry Sievers   305 854-3001 (home)     WWW ECommerce Consultant
                305 321-1144 (mobile	http://www.JerrySievers.com/



More information about the Python-list mailing list