-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks. I think the mail client got rid of the new line. In any case, the issue was with my LDAP setup, not python.
- --sharif On 05/22/2012 09:58 AM, Dolph Mathews wrote: > I'm not sure if you have a weird copy/paste there or not, but the > line with multiple imports shouldn't work at all (it should work as > three separate lines). > >>>> import ldap import keystone import keystone.identity >>>> > > If python-ldap is correctly installed, you should definitely be > able to do something like: > >>>> import ldap help(ldap) > > Or, from the command prompt: > > # python -c "import ldap; help(ldap)" > > Another caveat: LDAP requires binaries (on most systems?) that > can't be installed by python-specific tools (e.g. pip) alone. > > -Dolph > > On Tue, May 22, 2012 at 7:43 AM, Sharif Islam <isla...@indiana.edu > <mailto:isla...@indiana.edu>> wrote: > > Hi, > > I am trying to setup keystone with LDAP and noticing these errors. > I have python-ldap installed. What else do I need? > > # python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] > on linux2 Type "help", "copyright", "credits" or "license" for more > information. >>>> import ldap import keystone import keystone.identity > > > > (root): 2012-05-21 18:52:57,854 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,028 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,206 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,376 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,554 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,730 CRITICAL No module named ldap > (root): 2012-05-21 18:52:58,904 CRITICAL No module named ldap > (root): 2012-05-21 18:52:59,079 CRITICAL No module named ldap > (root): 2012-05-21 18:52:59,258 CRITICAL No module named ldap > (root): 2012-05-21 18:53:41,042 CRITICAL No module named ldap > > > --sharif > > _______________________________________________ Mailing list: > https://launchpad.net/~openstack Post to : > openstack@lists.launchpad.net > <mailto:openstack@lists.launchpad.net> Unsubscribe : > https://launchpad.net/~openstack More help : > https://help.launchpad.net/ListHelp > > - -- Sharif Islam Senior Systems Analyst/Programmer FutureGrid (http://futuregrid.org) Pervasive Technology Institute, Indiana University Bloomington -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPu7QkAAoJEACffes9SivFFM0IALybSXMFzb9x9PUFgmlnePzi bgDiu69NbTHVewrQCzSVCCi2QWQzwTYaQvXB601QgBtccluJrxJIC/Lur6u/VVhQ YzEtV6kRrRyZtIvzqIb0x1PJvZHTUgaxUVbOP8PkeJPJbgxiEtYwzoAkXcoF0ACW WeyU6zv2fJsn6pHK6tUYd41KbOXy1jmbzC6s0Y2YGJtxDvRmqzu9nOfqFBfFD7Z4 rTEWm9Zo3rTMTH9pHIPegR3rmM14LRzRc8wT5bGoPHG4R7c3nK8Vz3KhbzObzL25 XgCcTkW1SmxJdGOE1gzWu46El2BO+aYdAp1k8b65yca7UmJiaJNec7wV77jVdys= =5rxQ -----END PGP SIGNATURE----- _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp