[Python-modules-team] Bug#905757: python3-ldap3 fails to import on stretch
Mathias Behrle
mbehrle at debian.org
Thu Aug 9 10:25:34 BST 2018
> Package: python3-ldap3
> Version: 1.2.2-1
>
> There is a traceback when importing ldap3:
>
> $ python3
> Python 3.5.3 (default, Jan 19 2017, 14:11:04)
> [GCC 6.3.0 20170118] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ldap3
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python3.5/dist-packages/ldap3/__init__.py", line 138,
> in <module> from .core.connection import Connection
> File "/usr/local/lib/python3.5/dist-packages/ldap3/core/connection.py",
> line 37, in <module> from ..extend import ExtendedOperationsRoot
> File "/usr/local/lib/python3.5/dist-packages/ldap3/extend/__init__.py",
> line 45, in <module> from .standard.whoAmI import WhoAmI
> File
> "/usr/local/lib/python3.5/dist-packages/ldap3/extend/standard/whoAmI.py",
> line 27, in <module> from pyasn1.type.univ import NoValue ImportError: cannot
> import name 'NoValue'
It seems that you are using a non-standard system (i.e. installed ldap3
from another source), the path to ldap3 provided by the Debian package is for
Python3:
/usr/lib/python3/dist-packages/ldap3
Just verified on stretch:
mathiasb at debian-stretch-vm:~$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldap3
>>>
ldap3 imports without problems.
Please verify again and close this bug if adequate.
Cheers,
Mathias
--
Mathias Behrle
PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
AC29 7E5C 46B9 D0B6 1C71 7681 D6D0 9BE4 8405 BBF6
More information about the Python-modules-team
mailing list