[python-ldap] problems using import ldap---library
Francis Abrante
fabrante at yahoo.com
Thu Jul 28 10:36:35 CEST 2011
Hi
I think that this is the version that I need, but I cannot found it.
python_ldap-2.4.0-py2.7-linux-x86_64.egg
________________________________
De: Francis Abrante <fabrante at yahoo.com>
Para: Michael Wood <esiotrot at gmail.com>
CC: Michael Ströder <michael at stroeder.com>; "python-ldap at python.org" <python-ldap at python.org>
Enviado: Jueves, julio 28, 2011 10:25 A.M.
Asunto: Re: [python-ldap] problems using import ldap
Hi
I still have problems, but I think that my problem come from the library version. I don't know from where I can get the egg version for python 2.7. From http://svn.kmrc.de/download/distribution/contrib/ only allow me until 2.6
/usr/local/bin/python2.7 /home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP Agent/get_info.py
Traceback (most recent call last):
File "/home/orbac/TSP-CloudStack/src/it/tsp/cloudstack/orbac/LDAP Agent/get_info.py", line 1, in <module>
import ldap
File "/usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/ldap/__init__.py", line 22, in
<module>
from _ldap import *
ImportError: /usr/local/lib/python2.7/site-packages/python_ldap-2.3.9-py2.6-linux-x86_64.egg/_ldap.so: wrong ELF class: ELFCLASS64
Process finished with exit code 1
By the way:
orbac at orbac-desktop:~/python-ldap$ /usr/bin/python -c "import ldap;print ldap.__version__"
2.3.10
Thanks.
________________________________
De: Michael Wood <esiotrot at gmail.com>
Para: Francis Abrante <fabrante at yahoo.com>
CC: Michael Ströder <michael at stroeder.com>; python-ldap at python.org
Enviado: Martes, julio 19, 2011 2:35 P.M.
Asunto: Re: [python-ldap] problems using import ldap
On 19 July 2011 14:07, Francis Abrante <fabrante at yahoo.com> wrote:
>
> Hi again
>
> I tried to uninstall and install the package and doesn't work either.
>
> root at orbac-desktop:~/python-ldap/python-ldap-2.4.0# apt-get install python-ldap
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-ldap is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
That's because it is already correctly
installed. The problem is not
with the python-ldap package, but rather with your non-standard
installation of Python (/usr/local/bin/python), which as I said I
suspect has something to do with "pycharm", with which I am
unfamiliar.
[...]
> root at orbac-desktop:~/python-ldap/python-ldap-2.4.0# python -c "import ldap;print ldap.__version__"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: No module named ldap
You did not correctly follow my instructions.
I said you should try:
$ /usr/bin/python -c "import ldap;print ldap.__version__"
and not just:
$ python -c "import ldap;print ldap.__version__"
And I still think pycharm is what's causing this to not just work out
of the box. So you might want to contact them rather.
--
Michael Wood <esiotrot at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20110728/ecd63f67/attachment.html>
More information about the python-ldap
mailing list