Deseret Tech

February 3, 2010

python-ldap “expected a string in the list”

Filed under: howto,programming — jeffc @ 6:14 pm

This error is given by python-ldap on Python 2.x on certain operations when it receives unicode objects where it expects a str object. Make sure any strings you pass into python-ldap are string type, not unicode type, and this problem will go away.  :)

Powered by WordPress