Traceback (most recent call last):


 "/storage/gpfs_data/Software/python3.6.8/lib64/python3.6/site-packages/luigi/worker.py", line 199, in run

new_deps = self._run_get_new_deps()


 "/storage/gpfs_data/Software/python3.6.8/lib64/python3.6/site-packages/luigi/worker.py", line 141, in _run_get_new_deps

task_gen = self.task.run()


 "/storage/gpfs_data/Software/python3.6.8/lib64/python3.6/site-packages/luigi/contrib/lsf.py", line 191, in run

self._init_local()


 "/storage/gpfs_data/Software/python3.6.8/lib64/python3.6/site-packages/luigi/contrib/lsf.py", line 162, in _init_local

self._dump(self.tmp_dir)


 "/storage/gpfs_data/Software/python3.6.8/lib64/python3.6/site-packages/luigi/contrib/lsf.py", line 217, in _dump

pickle.dump(self, open(self.job_file, "w"))
TypeError: write() argument must be str, not bytes

Traceback (most recent call last):


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 256, in save

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


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 279, in _save

self.insert()


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 245, in insert

self.run_post_save_methods()


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 887, in run_post_save_methods

self.run_method("on_update")


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 755, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 1029, in composer

return composed(self, method, *args, **kwargs)


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 1012, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/model/document.py", line 749, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 226, in on_update

self.make_controller_template()


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 348, in make_controller_template

make_boilerplate("controller._py", self)


 "/Users/farisansari/frappe-bench/apps/frappe/frappe/modules/utils.py", line 232, in make_boilerplate

doctype=doc.name, **opts)
TypeError: write() argument must be str, not bytes
