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> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJPu4oGAAoJEACffes9SivFRboH/Rdt7lC257AV7IDauHgEOOhn > gGlfI5rGMmrcCyKmPXYHwtl4yvBYTU+vdJ7Y9OTGSHMQR0712EAMAGxzefJA6o3U > xpqpa/eTnBI/NhrkCtolTo6deFT8TLeOLXH7D2OBwl3DQ0u9+MwRZSjv/jLhtSw6 > 8n7CiuMXT6ozGTGxlLrmW9BPZ6qnANtaV52qhUTncEhAnHNvxnWgfi94szWwNavV > 1PLUkGpX8CpD/Q9u6GGaLUOzROmQkgAI71KDu5NW64zKRNrC42vUYhH3NCu/gi4g > FQ3npfvnfETk6nPDDDFZBxDrv53ikUy3QKj7e+y/nBB3zu959tBC9+hzgS728ro= > =CKJy > -----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 >
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp