Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/ray/worker.py", line 2116, in register_custom_serializer

class_id = _try_to_compute_deterministic_class_id(cls)


 "/usr/local/lib/python3.6/site-packages/ray/worker.py", line 2036, in _try_to_compute_deterministic_class_id

class_id = pickle.dumps(cls)


 "/usr/local/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle.py", line 952, in dumps

cp.dump(obj)


 "/usr/local/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle.py", line 267, in dump

return Pickler.dump(self, obj)


 "/usr/local/lib/python3.6/pickle.py", line 409, in dump

self.save(obj)


 "/usr/local/lib/python3.6/pickle.py", line 476, in save

f(self, obj) # Call unbound method with explicit self


 "/usr/local/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle.py", line 693, in save_global

return self.save_dynamic_class(obj)


 "/usr/local/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle.py", line 532, in save_dynamic_class

save(clsdict)


 "/usr/local/lib/python3.6/pickle.py", line 476, in save

f(self, obj) # Call unbound method with explicit self


 "/usr/local/lib/python3.6/pickle.py", line 821, in save_dict

self._batch_setitems(obj.items())


 "/usr/local/lib/python3.6/pickle.py", line 847, in _batch_setitems

save(v)


 "/usr/local/lib/python3.6/pickle.py", line 521, in save

self.save_reduce(obj=obj, *rv)


 "/usr/local/lib/python3.6/pickle.py", line 634, in save_reduce

save(state)


 "/usr/local/lib/python3.6/pickle.py", line 476, in save

f(self, obj) # Call unbound method with explicit self


 "/usr/local/lib/python3.6/pickle.py", line 821, in save_dict

self._batch_setitems(obj.items())


 "/usr/local/lib/python3.6/pickle.py", line 847, in _batch_setitems

save(v)


 "/usr/local/lib/python3.6/pickle.py", line 496, in save

rv = reduce(self.proto)
TypeError: can't pickle _thread.lock objects

Traceback (most recent call last):


 "./manage.py", line 12, in <module>

execute_from_command_line(sys.argv)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line

utility.execute()


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute

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


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv

self.execute(*args, **cmd_options)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute

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


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 160, in handle

pre_migrate_apps = pre_migrate_state.apps


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/migrations/state.py", line 210, in apps

return StateApps(self.real_apps, self.models)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/migrations/state.py", line 271, in __init__

self.render_multiple(list(models.values()) + self.real_models)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/migrations/state.py", line 306, in render_multiple

model.render(self)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/migrations/state.py", line 575, in render

return type(self.name, bases, body)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/models/base.py", line 152, in __new__

new_class.add_to_class(obj_name, obj)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/models/base.py", line 315, in add_to_class

value.contribute_to_class(cls, name)


 "$VIRTUAL_ENV/lib/python3.6/site-packages/django/db/models/manager.py", line 117, in contribute_to_class

setattr(model, name, ManagerDescriptor(self))
TypeError: attribute name must be string, not 'bytes'
