<span idspanfor="frame" mlb_idspanflag="true" style="border: 1px solid black; padding: 0px 3px; z-index: 500; font-size: xx-small; font-family: sans-serif; background-color: rgb(214, 227, 254); position: absolute; top: 0pt; left: 0pt; display: inline;">2</span><br><br><b><i>LI Xin <delphij@delphij.net></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi, Ted,<br><br>Ted Johnson wrote:<br>> Hi;<br>> I'm on FreeBSD 6.1. I've successfully installed OpenLDAP from the port<br>> (I can issue commands to the s/w at the prompt) and it appears I've done<br>> the same with py-ldap2 (don't know what commands to issue, but FreeBSD<br>> says the s/w was loaded successfully). However, when I fire up my Python<br>> interpreter and enter "import ldap" I'm told no such module exists. <br>> What could I be doing wrong?<br><br>I do use py-ldap2 on FreeBSD a lot, and I think I have did a
good job on<br>the port ;-) so I would like to help out.<br><br>Which python release do you use? <br><br>2.3.5<br><br>Will you please check the output of<br>'pkg_info -L py24-ldap2-2.2.0' to confirm that it has installed the<br>stuff into your python installation's site-packages/ directory?<br><br>Here it is, thanks for your help, and TIA for any further direction you can provide.<br>Ted<br><br></blockquote>server167# pkg_info -L py24-ldap2-2.2.0<br>Information for
py24-ldap2-2.2.0:<br><br>Files:<br>/usr/local/lib/python2.4/site-packages/dsml.py<br>/usr/local/lib/python2.4/site-packages/dsml.pyc<br>/usr/local/lib/python2.4/site-packages/dsml.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/__init__.py<br>/usr/local/lib/python2.4/site-packages/ldap/__init__.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/__init__.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/async.py<br>/usr/local/lib/python2.4/site-packages/ldap/async.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/async.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/cidict.py<br>/usr/local/lib/python2.4/site-packages/ldap/cidict.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/cidict.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/controls.py<br>/usr/local/lib/python2.4/site-packages/ldap/controls.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/controls.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/dn.py<br>/usr/local/lib/python2.4/site-packages/ldap/dn
.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/dn.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/filter.py<br>/usr/local/lib/python2.4/site-packages/ldap/filter.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/filter.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/functions.py<br>/usr/local/lib/python2.4/site-packages/ldap/functions.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/functions.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py<br>/usr/local/lib/python2.4/site-packages/ldap/ldapobject.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/ldapobject.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/modlist.py<br>/usr/local/lib/python2.4/site-packages/ldap/modlist.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/modlist.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/sasl.py<br>/usr/local/lib/python2.4/site-packages/ldap/sasl.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/sasl.pyo<br>/usr/local/lib/python2.4/site-packages/ldap
/schema/__init__.py<br>/usr/local/lib/python2.4/site-packages/ldap/schema/__init__.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/schema/__init__.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/schema/models.py<br>/usr/local/lib/python2.4/site-packages/ldap/schema/models.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/schema/models.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/schema/subentry.py<br>/usr/local/lib/python2.4/site-packages/ldap/schema/subentry.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/schema/subentry.pyo<br>/usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.py<br>/usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.pyc<br>/usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.pyo<br>/usr/local/lib/python2.4/site-packages/ldapurl.py<br>/usr/local/lib/python2.4/site-packages/ldapurl.pyc<br>/usr/local/lib/python2.4/site-packages/ldapurl.pyo<br>/usr/local/lib/python2.4/site-packages/ldif.py<br>/usr/local/lib/python2.
4/site-packages/ldif.pyc<br>/usr/local/lib/python2.4/site-packages/ldif.pyo<br>/usr/local/lib/python2.4/site-packages/_ldap.so<br><br><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com