PyQt on a Server

Bob Parnes rparnes at megalink.net
Thu Dec 2 20:50:02 EST 2004


On 29 Nov 2004 11:07:48 -0500, Jerry Sievers <jerry at jerrysievers.com> wrote:
> 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

Yes, this works.

> 
> 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.
> 

my /etc/ld.so.conf file already has that lib in it. So something else is
happening, but it clearly has nothing to do with python.

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

The lib is a symlink to another file in the same directory, and the
permissions seem to be okay. Thanks very much for your help.

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


-- 
Bob Parnes
rparnes at megalink.net



More information about the Python-list mailing list