<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi</div><div><br></div><div>I already uninstall the other versions, but where can I get the library for 32 bits?<br><span></span></div><div><br><span></span></div><div><span>python_ldap-2.4.0-py2.7</span></div><div><br><span></span></div><div><span>Thanks</span></div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Michael Ströder <michael@stroeder.com><br><b><span style="font-weight: bold;">Para:</span></b> Francis Abrante <fabrante@yahoo.com><br><b><span style="font-weight: bold;">CC:</span></b> "python-ldap@python.org" <python-ldap@python.org><br><b><span style="font-weight:
bold;">Enviado:</span></b> Jueves, julio 28, 2011 10:39 A.M.<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [python-ldap] problems using import ldap<br></font><br>Francis Abrante wrote:<br>> I still have problems, but I think that my problem come from the library<br>> version. I don't know from where I can get the egg version for python 2.7.<br>> From <a href="http://svn.kmrc.de/download/distribution/contrib/" target="_blank">http://svn.kmrc.de/download/distribution/contrib/</a> only allow me until<br>> 2.6 <br>> <br>> /usr/local/bin/python2.7<br>> /home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP Agent/get_info.py<br>> Traceback (most recent call last):<br>> File "/home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP<br>> Agent/get_info.py", line 1, in <module><br>> import ldap<br>> File<br>>
"/usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/ldap/__init__.py",<br>> line 22, in <module><br>> from _ldap import *<br>> ImportError:<br>> /usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/_ldap.so:<br>> wrong ELF class: ELFCLASS64<br><br>This rather sounds to me that you've compiled python-ldap for 64-bit platform<br>but the Python interpreter you're using is a 32-bit build.<br><br>It seems that to that you should really clean up your system. You're mixing<br>build platforms, Python versions, python-ldap etc. That's a big mess.<br><br>Especially you should read and understand about how DistUtils are working (the<br>link I've posted before).<br><br>Ciao, Michael.<br><br><br></div></div></div></body></html>