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