<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 &lt;michael@stroeder.com&gt;<br><b><span style="font-weight: bold;">Para:</span></b> Francis Abrante &lt;fabrante@yahoo.com&gt;<br><b><span style="font-weight: bold;">CC:</span></b> "python-ldap@python.org" &lt;python-ldap@python.org&gt;<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>&gt; I still have problems, but I think that my problem come from the library<br>&gt; version. I don't know from where I can get the egg version for python 2.7.<br>&gt; From&nbsp; &nbsp; <a href="http://svn.kmrc.de/download/distribution/contrib/" target="_blank">http://svn.kmrc.de/download/distribution/contrib/</a>&nbsp; only allow me until<br>&gt; 2.6 <br>&gt; <br>&gt; /usr/local/bin/python2.7<br>&gt; /home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP Agent/get_info.py<br>&gt; Traceback (most recent call last):<br>&gt;&nbsp;  File "/home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP<br>&gt; Agent/get_info.py", line 1, in &lt;module&gt;<br>&gt;&nbsp; &nbsp;  import ldap<br>&gt;&nbsp;  File<br>&gt;
 "/usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/ldap/__init__.py",<br>&gt; line 22, in &lt;module&gt;<br>&gt;&nbsp; &nbsp;  from _ldap import *<br>&gt; ImportError:<br>&gt; /usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/_ldap.so:<br>&gt; 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>