swapnillipare / google-apps-for-your-domain-ldap-sync

Automatically exported from code.google.com/p/google-apps-for-your-domain-ldap-sync
0 stars 0 forks source link

Getting Error - No Module Named _ldap #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

What is the expected output? What do you see instead?
C:\google\gldap-sync>python sync_ldap.py
Traceback (most recent call last):
  File "sync_ldap.py", line 38, in <module>
    import ldap_ctxt
  File "C:\google\gldap-sync\ldap_ctxt.py", line 27, in <module>
    import ldap
  File "C:\google\python-ldap\Lib\ldap\__init__.py", line 22, in <module>
    from _ldap import *
ImportError: No module named _ldap

What version of the product are you using? On what operating system?
Using Windows Server 2003. I am using Python 2.6. Its installed under my
folder c:\python. I have installed all the google related tools under -
c:\google\gldap-sync
c:\google\python-api
c:\google\python-ldap

this is my PYTHONPATH =
C:\google\python-api;C:\google\python-ldap\Lib;C:\python\Lib;C:\python\libs;C:\g
oogle\python-ldap

Please provide any additional information below.

Original issue reported on code.google.com by visha...@gmail.com on 12 Nov 2008 at 7:23

GoogleCodeExporter commented 8 years ago
Ok I have solved the problem. I was using a wrong version of python-ldap. I got 
the
windows version from here. 
http://www.osuch.org/python-ldap-2.3.5.win32-py2.5.msi

Thanks.

Original comment by visha...@gmail.com on 12 Nov 2008 at 7:42