PyQt on a Server

Bob Parnes rparnes at
Fri Dec 3 02:50:02 CET 2004

On 29 Nov 2004 11:07:48 -0500, Jerry Sievers <jerry at> wrote:
> Bob Parnes <rparnes at> 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/", line 24, in ?
>>     from qt import *
>>   File "/usr/lib/python2.3/site-packages/", line 24, in ?
>>     import libsip
>> ImportError: 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 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;
> then

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

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

Bob Parnes
rparnes at

More information about the Python-list mailing list