|
From: Ulf v. C. <von...@rz...> - 2002-09-05 12:02:40
|
Ulf von Ceumern wrote: > Michael Str=F6der wrote: > > > > plus: i am installing this under a user dir and need to point pytho= n to > > > use this version rather than the old version which is installed und= er > > > the python lib dir somewhere. how do i do that? > > > > Use the executable of python which is in your user dir when invoking > > setup.py. > > > > Example: > > > > $ /home/ulf/bin/python setup.py build > > $ /home/ulf/bin/python setup.py install > > > > instead of > > > > $ python setup.py build > > $ python setup.py install > > > > Note that the build also has to be done with your locally installed v= ersion! > > Hi Michael. > > Thanks for your help on the warning. > > But you got me wrong on the second problem: > > I want a python script to use the python-ldap version in my home dir = rather > than the one installed in the usual dir. I set > export > PYTHONPATH=3D/home/ceumern/ldap/python-ldap-2.0.0pre05/build/lib.solari= s-2.8-sun4u-2.1/ > > and this is what i get: > > bash-2.03$ python -d /home/ceumern/ldap/ldap_test.py > Traceback (most recent call last): > File "/home/ceumern/ldap/ldap_test.py", line 6, in ? > import ldap > File > "/home/ceumern/ldap/python-ldap-2.0.0pre05/build/lib.solaris-2.8-sun4u-= 2.1/ldap/__init__.py", > line 11, in ? > from _ldap import * > ImportError: ld.so.1: python: fatal: libldap.so.2: open failed: No such= file or > directory > > when i unset the variable the skript uses the version installed under > python2.1/site-packages/ldap and it works. > there seems to be something wrong with my built version, but i cannot f= igure > out what. > > regards, Ulf I am sorry. I fixed that. i just needed to set the LD_LIBRARY_PATH to whe= re the libs are.. (newbie :-) cu, Ulf |