Shubham srivastava
Shubham srivastava

Reputation: 267

How to resolve ImportError: cannot import name 'PyAsn1UnicodeDecodeError' in ldap3 connection

I am stuck at this error while importing from ldap3 import Server, Connection, ALL. Please help

Upvotes: 1

Views: 3075

Answers (2)

Michael
Michael

Reputation: 46

I stumbled above the same error. In my case my executed python file was named like the ldap3 python library (ldap3.py). So i renamed my file and it worked.

Upvotes: 0

cannatag
cannatag

Reputation: 1588

Try to update the pyasn1 package

pip install -U pyasn1

Upvotes: 3

Related Questions