Traceback (most recent call last):


 "/opt/bench/erpnext/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 260, in save

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


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 294, in _save

self.run_before_save_methods()


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 869, in run_before_save_methods

self.run_method("validate")


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 765, in run_method

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


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 1040, in composer

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


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 1023, in runner

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


 "/opt/bench/erpnext/apps/frappe/frappe/model/document.py", line 759, in 

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


 "/opt/bench/erpnext/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py", line 30, in validate

self.validate_max_days()


 "/opt/bench/erpnext/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py", line 255, in validate_max_days

max_days = frappe.db.get_value("Leave Type", self.leave_type, "max_continuous_days_allowed")


 "/opt/bench/erpnext/apps/frappe/frappe/database.py", line 482, in get_value

order_by, cache=cache)


 "/opt/bench/erpnext/apps/frappe/frappe/database.py", line 526, in get_values

out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)


 "/opt/bench/erpnext/apps/frappe/frappe/database.py", line 666, in _get_values_from_table

as_dict=as_dict, debug=debug, update=update)


 "/opt/bench/erpnext/apps/frappe/frappe/database.py", line 199, in sql

self._cursor.execute(query, values)


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/cursors.py", line 165, in execute

result = self._query(query)


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/cursors.py", line 321, in _query

conn.query(q)


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/connections.py", line 860, in query

self._affected_rows = self._read_query_result(unbuffered=unbuffered)


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/connections.py", line 1061, in _read_query_result

result.read()


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/connections.py", line 1349, in read

first_packet = self.connection._read_packet()


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/connections.py", line 1018, in _read_packet

packet.check_error()


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error

err.raise_mysql_exception(self._data)


 "/opt/bench/erpnext/env/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception

raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column 'max_continuous_days_allowed' in 'field list'")

Traceback (most recent call last):


 "C:\Users\tomas\AppData\Local\Programs\Python\Python35\Scripts\zipline-script.py", line 11, in <module>

load_entry_point('zipline-live==1.1.0.5', 'console_scripts', 'zipline')()


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 484, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2714, in load_entry_point

return ep.load()


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2332, in load

return self.resolve()


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 2338, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\zipline\__init__.py", line 24, in <module>

from . import finance


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\zipline\finance\__init__.py", line 16, in <module>

from . import execution, trading


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\zipline\finance\trading.py", line 23, in <module>

from zipline.assets import AssetDBWriter, AssetFinder


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\zipline\assets\__init__.py", line 23, in <module>

from .assets import (


 "c:\users\tomas\appdata\local\programs\python\python35\lib\site-packages\zipline\assets\assets.py", line 73, in <module>

from zipline.utils.functional import invert
ImportError: cannot import name 'invert'
