Traceback (most recent call last):

 "setup.py", line 333, in <module>
**keywords_with_side_effects(sys.argv)

 "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()

 "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)

 "/usr/lib/python3.5/distutils/dist.py", line 973, in run_command
cmd_obj.ensure_finalized()

 "/usr/lib/python3.5/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()

 "setup.py", line 101, in finalize_options
[sys.executable, "setup.py", "install"], cwd="vectors"

 "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/usr/bin/python3.5', 'setup.py', 'install']' returned non-zero exit status 1
"Traceback (most recent call last):


 "/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'
