|
From: Josef M. <me...@im...> - 2002-04-18 21:38:44
|
Hi, I'm just trying to install python-ldap on suse 7.3, Zope 2.3.3 and Python 1.5.2 I also installed the LDAPUserManager 1.3 and the LDAPLoginAdapter 1.6. I followed all the instruccions: 1- Download and install the binary from suse 7.3 -> python-ldap-1.10alpha3-182.i386.rpm (I took it from ftp.suse.com) 2- Set the LD_LIBRARY_PATH where my liblber.so.2 and libldap.so.2 are: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib export LD_LIBRARY_PATH 3- Set the PYTHONPATH where the python-ldap module is: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap:/usr/lib /python2.1/site-packages export PYTHONPATH Here I also tried: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap export PYTHONPATH and: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages export PYTHONPATH But then I got one error more. These are the errors: ------ 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import Products.LDAPLoginAdapter Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in import_ products (Object: string) File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/__init__.py, line 13 , in ? File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPLoginAdapter.py, line 23, in ? File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPShared.py, line 19, in ? File /usr/lib/python2.1/site-packages/python-ldap/ldap.py, line 2, in ? ImportError: /usr/lib/python2.1/site-packages/_ldapmodule.so: undefined symbol: PyObject_Init ------ 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import Products.LDAPUserManager Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in import_ products (Object: string) File /usr/local/Zope/lib/python/Products/LDAPUserManager/__init__.py, line 13, in ? File /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPUserManager.py, l ine 16, in ? File /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPShared.py, line 2 3, in ? AttributeError: SCOPE_BASE ------ 2002-04-18T21:18:38 INFO(0) ZServer HTTP server started at Thu Apr 18 23:18:38 2 002 Hostname: localhost Port: 80 ------ 2002-04-18T21:18:38 INFO(0) ZServer FTP server started at Thu Apr 18 23:18:38 20 02 Hostname: localhost Port: 8021 ------ 2002-04-18T21:18:38 INFO(0) ZServer PCGI Server started at Thu Apr 18 23:18:38 2 002 Unix socket: /usr/local/Zope-2.3.0/var/pcgi.soc Does anybody know the mistake? Thanks in advanced, Josef. |
|
From: Josef M. <jm...@ho...> - 2002-04-18 21:46:52
|
Hi, I'm just trying to install python-ldap on suse 7.3, Zope 2.3.3 and Python 1.5.2 I also installed the LDAPUserManager 1.3 and the LDAPLoginAdapter 1.6. I followed all the instruccions: 1- Download and install the binary from suse 7.3 -> python-ldap-1.10alpha3-182.i386.rpm (I took it from ftp.suse.com) 2- Set the LD_LIBRARY_PATH where my liblber.so.2 and libldap.so.2 are: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib export LD_LIBRARY_PATH 3- Set the PYTHONPATH where the python-ldap module is: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap:/usr/lib /python2.1/site-packages export PYTHONPATH Here I also tried: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap export PYTHONPATH and: PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages export PYTHONPATH But then I got one error more. These are the errors: ------ 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import Products.LDAPLoginAdapter Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in import_ products (Object: string) File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/__init__.py, line 13 , in ? File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPLoginAdapter.py, line 23, in ? File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPShared.py, line 19, in ? File /usr/lib/python2.1/site-packages/python-ldap/ldap.py, line 2, in ? ImportError: /usr/lib/python2.1/site-packages/_ldapmodule.so: undefined symbol: PyObject_Init ------ 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import Products.LDAPUserManager Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in import_ products (Object: string) File /usr/local/Zope/lib/python/Products/LDAPUserManager/__init__.py, line 13, in ? File /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPUserManager.py, l ine 16, in ? File /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPShared.py, line 2 3, in ? AttributeError: SCOPE_BASE ------ 2002-04-18T21:18:38 INFO(0) ZServer HTTP server started at Thu Apr 18 23:18:38 2 002 Hostname: localhost Port: 80 ------ 2002-04-18T21:18:38 INFO(0) ZServer FTP server started at Thu Apr 18 23:18:38 20 02 Hostname: localhost Port: 8021 ------ 2002-04-18T21:18:38 INFO(0) ZServer PCGI Server started at Thu Apr 18 23:18:38 2 002 Unix socket: /usr/local/Zope-2.3.0/var/pcgi.soc Does anybody know the mistake? Thanks in advanced, Josef. |
|
From: Jens V. <je...@zo...> - 2002-04-18 21:55:46
|
is your zope a binary version or the source version? apart from that you cannot expect python 1.5 (which is what your zope is running on) to find and use things in the python path of a python 2.1 installation. jens P.S.: never trust RPM packages for addons like this because they are always packaged with a lot of assumptions, like what python to use and where things are installed. On Thursday, April 18, 2002, at 05:38 , Josef Meile wrote: > Hi, > I'm just trying to install python-ldap on suse 7.3, Zope 2.3.3 and Python > 1.5.2 > I also installed the LDAPUserManager 1.3 and the LDAPLoginAdapter 1.6. > > I followed all the instruccions: > 1- Download and install the binary from suse 7.3 -> > python-ldap-1.10alpha3-182.i386.rpm (I took it from ftp.suse.com) > > 2- Set the LD_LIBRARY_PATH where my liblber.so.2 and libldap.so.2 are: > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib > export LD_LIBRARY_PATH > > 3- Set the PYTHONPATH where the python-ldap module is: > PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap:/usr/ > lib > /python2.1/site-packages > export PYTHONPATH > > Here I also tried: > PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages/python-ldap > export PYTHONPATH > > and: > PYTHONPATH=$PYTHONPATH:/usr/lib/python2.1/site-packages > export PYTHONPATH > > But then I got one error more. > > These are the errors: > > ------ > 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import > Products.LDAPLoginAdapter > Traceback (innermost last): > File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in > import_ > products > (Object: string) > File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/__init__.py, > line 13 > , in ? > File > /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPLoginAdapter.py, > line 23, in ? > File /usr/local/Zope/lib/python/Products/LDAPLoginAdapter/LDAPShared.py, > line > 19, in ? > File /usr/lib/python2.1/site-packages/python-ldap/ldap.py, line 2, in ? > ImportError: /usr/lib/python2.1/site-packages/_ldapmodule.so: undefined > symbol: > PyObject_Init > > > ------ > 2002-04-18T21:18:23 ERROR(200) Zope Couldn't import > Products.LDAPUserManager > Traceback (innermost last): > File /usr/local/Zope-2.3.0/lib/python/OFS/Application.py, line 528, in > import_ > products > (Object: string) > File /usr/local/Zope/lib/python/Products/LDAPUserManager/__init__.py, > line > 13, > in ? > File > /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPUserManager.py, l > ine 16, in ? > File /usr/local/Zope/lib/python/Products/LDAPUserManager/LDAPShared.py, > line 2 > 3, in ? > AttributeError: SCOPE_BASE > > > ------ > 2002-04-18T21:18:38 INFO(0) ZServer HTTP server started at Thu Apr 18 > 23:18:38 2 > 002 > Hostname: localhost > Port: 80 > ------ > 2002-04-18T21:18:38 INFO(0) ZServer FTP server started at Thu Apr 18 > 23:18:38 20 > 02 > Hostname: localhost > Port: 8021 > ------ > 2002-04-18T21:18:38 INFO(0) ZServer PCGI Server started at Thu Apr 18 > 23:18:38 2 > 002 > Unix socket: /usr/local/Zope-2.3.0/var/pcgi.soc > > > Does anybody know the mistake? > > Thanks in advanced, > Josef. > > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Josef M. <jm...@ho...> - 2002-04-19 10:54:07
|
> is your zope a binary version or the source version? Actually, I don't know it because it was installed when I started with it. How can I now it? > apart from that you cannot expect python 1.5 (which is what your zope is > running on) to find and use things in the python path of a python 2.1 > installation. I know it, but there isn't a suse version on the python-ldap's sourceforge page. So, where should I get it? Or can I perhaps change the python version? > P.S.: never trust RPM packages for addons like this because they are always > packaged with a lot of assumptions, like what python to use and where > things are installed. Which one should I download? Thanks for your reply, Josef. |
|
From: Jens V. <je...@zo...> - 2002-04-19 11:49:13
|
>> is your zope a binary version or the source version? > Actually, I don't know it because it was installed when I started with it. > How can I now it? if there is a python binary anywhere underneath the zope directory then you most likely have a binary distribution, which presents problems for newbies trying to install additional python modules. > >> apart from that you cannot expect python 1.5 (which is what your zope is >> running on) to find and use things in the python path of a python 2.1 >> installation. > I know it, but there isn't a suse version on the python-ldap's sourceforge > page. So, > where should I get it? Or can I perhaps change the python version? zope 2.3.x runs on python 1.5.2. you will have to get the python-ldap 1.10alpha3 source and build it i suppose. > >> P.S.: never trust RPM packages for addons like this because they are > always >> packaged with a lot of assumptions, like what python to use and where >> things are installed. > Which one should I download? get the source jens |
|
From: Josef M. <jm...@ho...> - 2002-04-19 13:03:59
|
> if there is a python binary anywhere underneath the zope directory then you > most likely have a binary distribution, which presents problems for newbies > trying to install additional python modules. You mean if there is a file called python and nothing else in the folder Zope2.x.x/bin? If so, then I have a binary version, so I'll have to install the source. By the way, where should I compile the source? I guess I've to install the version 1.5.2 as well. Thanks, Josef. |
|
From: <mi...@st...> - 2002-04-19 15:19:24
|
Josef Meile wrote: > You mean if there is a file called python and nothing else in the folder > Zope2.x.x/bin? > If so, then I have a binary version, so I'll have to install the source. By > the way, where should I compile the source? I guess I've to install the > version 1.5.2 as well. You should probably try to install all the packages from the SuSE Linux. Don't start mixing without really knowing what to do! AFAIK SuSE 7.3 comes with Python 2.1, (outdated) python-ldap 1.10alpha3 and Zope. Ciao, Michael. |
|
From: Jens V. <je...@zo...> - 2002-04-19 13:42:09
|
i assume the problem is trying to mix things that cannot be mixed using=20= the packages provided by suse. from what i can deduct sude comes with python2.1 and if python-ldap is a=20= suse package i assume it is compiled for this specific python2.1. = however, the zope he has only runs on 1.5.2. so he cannot achieve the desired = goal=20 using only prepackaged stuff. jens On Friday, April 19, 2002, at 09:10 , Michael Str=F6der wrote: > Josef Meile wrote: >> You mean if there is a file called python and nothing else in the = folder >> Zope2.x.x/bin? >> If so, then I have a binary version, so I'll have to install the = source. >> By >> the way, where should I compile the source? I guess I've to install = the >> version 1.5.2 as well. > > You should probably try to install all the packages from the SuSE = Linux.=20 > Don't start mixing without really knowing what to do! > > AFAIK SuSE 7.3 comes with Python 2.1, (outdated) python-ldap = 1.10alpha3=20 > and Zope. > > Ciao, Michael. > |
|
From: <mi...@st...> - 2002-04-19 14:09:09
|
Jens Vagelpohl wrote: > i assume the problem is trying to mix things that cannot be mixed using > the packages provided by suse. Yes. > from what i can deduct sude comes with python2.1 and if python-ldap is a > suse package i assume it is compiled for this specific python2.1. however, > the zope he has only runs on 1.5.2. so he cannot achieve the desired > goal using only prepackaged stuff. Yes. But SuSE also ships with Zope (not sure which version). I guess it works with the Python 2.1 SuSE RPM package. Ciao, Michael. |
|
From: Jens V. <je...@zo...> - 2002-04-19 13:56:59
|
> But SuSE also ships with Zope (not sure which version). > I guess it works with the Python 2.1 SuSE RPM package. i don't think his zope install is a suse package, or it is an older package. zope 2.3.x does not officially support python 2.x, only 1.5.2. besides, i doubt they would stick a second python binary into the zope package. that sounds awfully stupid to me... but who knows. i tend to avoid packaged stuff unless it is for generic software packages that i know will only be used in the bone stock configuration. relying on packages is good for newbies to a degree, but when you get incompatibilities you're usually *really* screwed. jens |
|
From: <mi...@st...> - 2002-04-19 14:06:58
|
Jens Vagelpohl wrote: >> But SuSE also ships with Zope (not sure which version). >> I guess it works with the Python 2.1 SuSE RPM package. > > i don't think his zope install is a suse package, or it is an older > package. I guess so either. Ciao, Michael. |