|
From: Ulf v. C. <von...@rz...> - 2002-09-05 11:01:19
|
Hi. I have some trouble building and installing python-ldap-2.0.0pre04 or 5 on my system (dont know sys specs exactly. some sun solaris server). here is what i get: bash-2.03$ make python setup.py build running build running build_py warning: build_py: file Lib/ldap.py (for module ldap) not found not copying Lib/ldap/__init__.py (output up-to-date) not copying Lib/ldap/async.py (output up-to-date) not copying Lib/ldap/functions.py (output up-to-date) not copying Lib/ldap/sasl.py (output up-to-date) not copying Lib/ldap/schema.py (output up-to-date) not copying Lib/ldap/ldapobject.py (output up-to-date) not copying Lib/ldap/modlist.py (output up-to-date) not copying Lib/ldapurl.py (output up-to-date) not copying Lib/ldif.py (output up-to-date) warning: build_py: file Lib/ldap.py (for module ldap) not found running build_ext skipping '_ldap' extension (up-to-date) plus: i am installing this under a user dir and need to point python to use this version rather than the old version which is installed under the python lib dir somewhere. how do i do that? best regards, ulf v. ceumern |
|
From: <mi...@st...> - 2002-09-05 11:44:05
|
Ulf von Ceumern wrote: > > warning: build_py: file Lib/ldap.py (for module ldap) not found This is a warning caused by a deficiency of DistUtils. Just ignore it. > plus: i am installing this under a user dir and need to point python to > use this version rather than the old version which is installed under > 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 version! Ciao, Michael. |
|
From: Ulf v. C. <von...@rz...> - 2002-09-05 11:55:45
Attachments:
vonceumern.vcf
|
Michael Str=F6der wrote:
> > plus: i am installing this under a user dir and need to point python =
to
> > use this version rather than the old version which is installed under
> > 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 ver=
sion!
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 ra=
ther
than the one installed in the usual dir. I set
export
PYTHONPATH=3D/home/ceumern/ldap/python-ldap-2.0.0pre05/build/lib.solaris-=
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 f=
ile 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 fig=
ure
out what.
regards, Ulf
|
|
From: Ulf v. C. <von...@rz...> - 2002-09-05 12:02:40
Attachments:
vonceumern.vcf
|
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 |
|
From: <mi...@st...> - 2002-09-06 06:55:52
|
Ulf von Ceumern wrote: > from _ldap import * > ImportError: ld.so.1: python: fatal: libldap.so.2: open failed: No such file or > directory Hmm, on Linux I would start playing with editing /etc/ld.so.conf or setting LD_LIBRARY_PATH. No clue about Solaris though. Ciao, Michael. |