Traceback (most recent call last):


 "D:\Anaconda3\envs\sample-project\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "D:\Anaconda3\envs\sample-project\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)


 "D:\Programming\personal_projects\sample-project\sample_tdqm.py", line 38, in <module>

p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),))


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\context.py", line 119, in Pool

context=self.get_context())


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\pool.py", line 176, in __init__

self._repopulate_pool()


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\pool.py", line 241, in _repopulate_pool

w.start()


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\process.py", line 112, in start

self._popen = self._Popen(self)


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\context.py", line 322, in _Popen

return Popen(process_obj)


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__

reduction.dump(process_obj, to_child)


 "D:\Anaconda3\envs\sample-project\lib\multiprocessing\reduction.py", line 60, in dump

ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle _thread.RLock objects

Traceback (most recent call last):


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/binaryboy/Desktop/open-event-server/app/__init__.py", line 67, in __call__

return self.app(environ, start_response)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app

response = self.handle_exception(e)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/api.py", line 133, in decorated

return self.check_permissions(view, view_args, view_kwargs, *args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/app/api/helpers/permission_manager.py", line 439, in permission_manager

return permissions[args[0]](view, view_args, view_kwargs, *args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/app/api/helpers/permissions.py", line 45, in decorator

return fn(*args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/app/api/helpers/permission_manager.py", line 112, in is_user_itself

return view(*view_args, **view_kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/decorators.py", line 32, in wrapper

return func(*args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/lib/python3.6/site-packages/flask/views.py", line 88, in view

return self.dispatch_request(*args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/resource.py", line 68, in dispatch_request

response = method(*args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/decorators.py", line 56, in wrapper

return func(*args, **kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/resource.py", line 311, in patch

self._data_layer.update_object(obj, data, kwargs)


 "/Users/binaryboy/Desktop/open-event-server/.venv/src/flask-rest-jsonapi/flask_rest_jsonapi/data_layers/alchemy.py", line 144, in update_object

self.after_update_object(obj, data, view_kwargs)


 "/Users/binaryboy/Desktop/open-event-server/app/api/users.py", line 204, in after_update_object

send_email_change_user_email(user, view_kwargs.get('email_changed'))


 "/Users/binaryboy/Desktop/open-event-server/app/api/helpers/mail.py", line 276, in send_email_change_user_email

hash = str(base64.b64encode(serializer.dumps([email, str_generator()])), 'utf-8')


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/base64.py", line 58, in b64encode

encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'str'
