Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 62, in application

response = frappe.handler.handle()


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle

data = execute_cmd(cmd)


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 55, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 942, in call

return fn(*args, **newargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs

doc.submit()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 841, in submit

self._submit()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 830, in _submit

self.save()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save

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


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 311, in _save

self.run_post_save_methods()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 901, in run_post_save_methods

self.run_method("on_submit")


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 765, in run_method

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


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1040, in composer

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


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1023, in runner

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


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 759, in <lambda>

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


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 318, in on_submit

self.make_gl_entries()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 327, in make_gl_entries

gl_entries = self.get_gl_entries()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 355, in get_gl_entries

self.make_item_gl_entries(gl_entries)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py", line 391, in make_item_gl_entries

warehouse_account = get_warehouse_account_map()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/__init__.py", line 22, in get_warehouse_account_map

d.account = get_warehouse_account(d, warehouse_account)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/__init__.py", line 36, in get_warehouse_account

account = warehouse_account.get(warehouse.parent_warehouse).account
AttributeError: 'NoneType' object has no attribute 'account'"
Traceback (most recent call last):


 "/home/hengyuli/pytorch-YOLOv4/train.py", line 624, in <module>

device=device, )


 "/home/hengyuli/pytorch-YOLOv4/train.py", line 425, in train

evaluator = evaluate(eval_model, val_loader, config, device)


 "/home/hengyuli/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 49, in decorate_no_grad

return func(*args, **kwargs)


 "/home/hengyuli/pytorch-YOLOv4/train.py", line 490, in evaluate

outputs = outputs.cpu().detach().numpy()
AttributeError: 'list' object has no attribute 'cpu'
