Traceback (most recent call last):


 "/home/zulip/deployments/current/manage.py", line 46, in <module>

execute_from_command_line(sys.argv)


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 356, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django/core/management/base.py", line 283, in run_from_argv

self.execute(*args, **cmd_options)


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django/core/management/base.py", line 330, in execute

output = self.handle(*args, **options)


 "/home/zulip/deployments/2019-11-27-20-35-23/zerver/management/commands/sync_ldap_user_data.py", line 43, in handle

sync_ldap_user_data(user_profiles)


 "/home/zulip/deployments/2019-11-27-20-35-23/zerver/management/commands/sync_ldap_user_data.py", line 25, in sync_ldap_user_data

sync_user_from_ldap(u, logger)


 "/home/zulip/deployments/2019-11-27-20-35-23/zproject/backends.py", line 764, in sync_user_from_ldap

updated_user = ZulipLDAPUser(backend, ldap_username, realm=user_profile.realm).populate_user()


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django_auth_ldap/backend.py", line 521, in populate_user

self._get_or_create_user(force_populate=True)


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django_auth_ldap/backend.py", line 721, in _get_or_create_user

self._populate_user()


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django_auth_ldap/backend.py", line 741, in _populate_user

self._populate_user_from_group_memberships()


 "/home/zulip/deployments/2019-11-27-20-35-23/zulip-py3-venv/lib/python3.7/site-packages/django_auth_ldap/backend.py", line 768, in _populate_user_from_group_memberships

setattr(self._user, field, value)
AttributeError: can't set attribute

Traceback (most recent call last):


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1741, in <module>

main()


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1735, in main

globals = debugger.run(setup['file'], None, None, is_module)


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1135, in run

pydev_imports.execfile(file, globals, locals)
# execute the script


 "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "path/to/dir/src.py", line 113, in generate_email

return faker.email(), '5'


 "path/to/dir/venv/lib/python3.7/site-packages/faker/utils/decorators.py", line 32, in wrapper

return fn(*args, **kwargs).lower()


 "path/to/dir/venv/lib/python3.7/site-packages/faker/providers/internet/__init__.py", line 135, in email

email = "".join(self.generator.parse(pattern).split(" "))


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 107, in parse

return _re_token.sub(self.__format_token, text)


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 111, in __format_token

formatter[1] = self.format(formatter[1])


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 79, in format

return self.get_formatter(formatter)(*args, **kwargs)


 "path/to/dir/venv/lib/python3.7/site-packages/faker/utils/decorators.py", line 25, in wrapper

return text.slugify(fn(*args, **kwargs), allow_unicode=True)


 "path/to/dir/venv/lib/python3.7/site-packages/faker/providers/internet/__init__.py", line 187, in user_name

self.bothify(self.generator.parse(pattern)).lower(),


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 107, in parse

return _re_token.sub(self.__format_token, text)


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 111, in __format_token

formatter[1] = self.format(formatter[1])


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 79, in format

return self.get_formatter(formatter)(*args, **kwargs)


 "path/to/dir/venv/lib/python3.7/site-packages/faker/generator.py", line 93, in get_formatter

raise AttributeError(msg)
AttributeError: Unknown formatter "first_name" with locale "en_US"
