Skip to content

TypeError when executing user_sync.py via python3 #319

@dk0r

Description

@dk0r

Issue

Executing the LDAP user_sync.py script via python@3.6.9 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 server

Steps to reproduce

Migrate oncall@1.2.3 to python3.
Step-by-step instructions for getting oncall running via py3 are published here

Troubleshooting attempts:

  • I'm not a python dev but google indicates the above error may be due to an upstream issue w/ gevent running on py3.
    Apparently something in gevent may need to be encoded to a bytes object via .encode('utf-8') 🤷🏻‍♂️
  • Posted issue to irisoncall's gitter

@diegocepedaw @dwang159

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions