From: Ted J. <wha...@ya...> - 2006-09-28 13:15:37
|
Hi; I'm on FreeBSD 6.1. I've successfully installed OpenLDAP from the port (I can issue commands to the s/w at the prompt) and it appears I've done the same with py-ldap2 (don't know what commands to issue, but FreeBSD says the s/w was loaded successfully). However, when I fire up my Python interpreter and enter "import ldap" I'm told no such module exists. What could I be doing wrong? TIA. Ted 2 --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. |
From: LI X. <de...@de...> - 2006-09-28 13:49:15
Attachments:
signature.asc
|
Hi, Ted, Ted Johnson wrote: > Hi; > I'm on FreeBSD 6.1. I've successfully installed OpenLDAP from the port > (I can issue commands to the s/w at the prompt) and it appears I've don= e > the same with py-ldap2 (don't know what commands to issue, but FreeBSD > says the s/w was loaded successfully). However, when I fire up my Pytho= n > interpreter and enter "import ldap" I'm told no such module exists.=20 > What could I be doing wrong? I do use py-ldap2 on FreeBSD a lot, and I think I have did a good job on the port ;-) so I would like to help out. Which python release do you use? Will you please check the output of 'pkg_info -L py24-ldap2-2.2.0' to confirm that it has installed the stuff into your python installation's site-packages/ directory? Cheers, --=20 Xin LI <de...@de...> http://www.delphij.net/ FreeBSD - The Power to Serve! |
From: Ted J. <wha...@ya...> - 2006-09-28 14:59:41
|
2 LI Xin <de...@de...> wrote: Hi, Ted, Ted Johnson wrote: > Hi; > I'm on FreeBSD 6.1. I've successfully installed OpenLDAP from the port > (I can issue commands to the s/w at the prompt) and it appears I've done > the same with py-ldap2 (don't know what commands to issue, but FreeBSD > says the s/w was loaded successfully). However, when I fire up my Python > interpreter and enter "import ldap" I'm told no such module exists. > What could I be doing wrong? I do use py-ldap2 on FreeBSD a lot, and I think I have did a good job on the port ;-) so I would like to help out. Which python release do you use? 2.3.5 Will you please check the output of 'pkg_info -L py24-ldap2-2.2.0' to confirm that it has installed the stuff into your python installation's site-packages/ directory? Here it is, thanks for your help, and TIA for any further direction you can provide. Ted server167# pkg_info -L py24-ldap2-2.2.0 Information for py24-ldap2-2.2.0: Files: /usr/local/lib/python2.4/site-packages/dsml.py /usr/local/lib/python2.4/site-packages/dsml.pyc /usr/local/lib/python2.4/site-packages/dsml.pyo /usr/local/lib/python2.4/site-packages/ldap/__init__.py /usr/local/lib/python2.4/site-packages/ldap/__init__.pyc /usr/local/lib/python2.4/site-packages/ldap/__init__.pyo /usr/local/lib/python2.4/site-packages/ldap/async.py /usr/local/lib/python2.4/site-packages/ldap/async.pyc /usr/local/lib/python2.4/site-packages/ldap/async.pyo /usr/local/lib/python2.4/site-packages/ldap/cidict.py /usr/local/lib/python2.4/site-packages/ldap/cidict.pyc /usr/local/lib/python2.4/site-packages/ldap/cidict.pyo /usr/local/lib/python2.4/site-packages/ldap/controls.py /usr/local/lib/python2.4/site-packages/ldap/controls.pyc /usr/local/lib/python2.4/site-packages/ldap/controls.pyo /usr/local/lib/python2.4/site-packages/ldap/dn.py /usr/local/lib/python2.4/site-packages/ldap/dn.pyc /usr/local/lib/python2.4/site-packages/ldap/dn.pyo /usr/local/lib/python2.4/site-packages/ldap/filter.py /usr/local/lib/python2.4/site-packages/ldap/filter.pyc /usr/local/lib/python2.4/site-packages/ldap/filter.pyo /usr/local/lib/python2.4/site-packages/ldap/functions.py /usr/local/lib/python2.4/site-packages/ldap/functions.pyc /usr/local/lib/python2.4/site-packages/ldap/functions.pyo /usr/local/lib/python2.4/site-packages/ldap/ldapobject.py /usr/local/lib/python2.4/site-packages/ldap/ldapobject.pyc /usr/local/lib/python2.4/site-packages/ldap/ldapobject.pyo /usr/local/lib/python2.4/site-packages/ldap/modlist.py /usr/local/lib/python2.4/site-packages/ldap/modlist.pyc /usr/local/lib/python2.4/site-packages/ldap/modlist.pyo /usr/local/lib/python2.4/site-packages/ldap/sasl.py /usr/local/lib/python2.4/site-packages/ldap/sasl.pyc /usr/local/lib/python2.4/site-packages/ldap/sasl.pyo /usr/local/lib/python2.4/site-packages/ldap/schema/__init__.py /usr/local/lib/python2.4/site-packages/ldap/schema/__init__.pyc /usr/local/lib/python2.4/site-packages/ldap/schema/__init__.pyo /usr/local/lib/python2.4/site-packages/ldap/schema/models.py /usr/local/lib/python2.4/site-packages/ldap/schema/models.pyc /usr/local/lib/python2.4/site-packages/ldap/schema/models.pyo /usr/local/lib/python2.4/site-packages/ldap/schema/subentry.py /usr/local/lib/python2.4/site-packages/ldap/schema/subentry.pyc /usr/local/lib/python2.4/site-packages/ldap/schema/subentry.pyo /usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.py /usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.pyc /usr/local/lib/python2.4/site-packages/ldap/schema/tokenizer.pyo /usr/local/lib/python2.4/site-packages/ldapurl.py /usr/local/lib/python2.4/site-packages/ldapurl.pyc /usr/local/lib/python2.4/site-packages/ldapurl.pyo /usr/local/lib/python2.4/site-packages/ldif.py /usr/local/lib/python2.4/site-packages/ldif.pyc /usr/local/lib/python2.4/site-packages/ldif.pyo /usr/local/lib/python2.4/site-packages/_ldap.so __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: LI X. <de...@de...> - 2006-09-30 07:55:05
Attachments:
signature.asc
|
Ted Johnson wrote: > 2 >=20 > */LI Xin <de...@de...>/* wrote: >=20 > Hi, Ted, >=20 > Ted Johnson wrote: > > Hi; > > I'm on FreeBSD 6.1. I've successfully installed OpenLDAP from the= port > > (I can issue commands to the s/w at the prompt) and it appears > I've done > > the same with py-ldap2 (don't know what commands to issue, but Fr= eeBSD > > says the s/w was loaded successfully). However, when I fire up my= > Python > > interpreter and enter "import ldap" I'm told no such module exist= s. > > What could I be doing wrong? >=20 > I do use py-ldap2 on FreeBSD a lot, and I think I have did a good j= ob on > the port ;-) so I would like to help out. >=20 > Which python release do you use? >=20 > 2.3.5 >=20 > Will you please check the output of > 'pkg_info -L py24-ldap2-2.2.0' to confirm that it has installed the= > stuff into your python installation's site-packages/ directory? >=20 > Here it is, thanks for your help, and TIA for any further direction= > you can provide. > Ted >=20 > server167# pkg_info -L py24-ldap2-2.2.0 > Information for py24-ldap2-2.2.0: >=20 > Files: > /usr/local/lib/python2.4/site-packages/dsml.py > /usr/local/lib/python2.4/site-packages/dsml.pyc It seems that you have side-by-side installation of Python 2.4 and 2.3. Will you please deinstall one and re-install python-ldap, to see if it is built with python-2.3? BTW. If you do not have specific reason to use Python 2.3.x (be sure to rebuild all py23-*), I would suggest that you install 2.4 series. Cheers, --=20 Xin LI <de...@de...> http://www.delphij.net/ FreeBSD - The Power to Serve! |