-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when executing user_sync.py via python3 #319
Comments
looks like a bug in |
@houqp thanks for the prompt reply! Per your advice, I received a new
Troubleshooting steps:As a non-python dev, the above
Any suggestions for further debug? |
It's possible that you didn't get any result from the ldap search, what did you get for the following logging call?
|
Issue
Executing the LDAP
user_sync.py
script via[email protected]
results in the following error:TypeError: a bytes-like object is required, not 'str'
(full output shown here)Expected Behavior
As described here, it is expected that the
user_sync.py
script should periodically sync users from a preexisting LDAP serverSteps to reproduce
Migrate
[email protected]
to python3.Step-by-step instructions for getting oncall running via py3 are published here
Troubleshooting attempts:
gevent
running on py3.Apparently something in
gevent
may need to be encoded to a bytes object via.encode('utf-8')
🤷🏻♂️@diegocepedaw @dwang159
The text was updated successfully, but these errors were encountered: