Traceback (most recent call last):


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

response = frappe.handler.handle()


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

data = execute_cmd(cmd)


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

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


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

"""Call a function and match arguments."""


 "/home/rockers/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 43, in cancel

doc.cancel()


 "/home/rockers/frappe-bench/apps/frappe/frappe/model/document.py", line 853, in cancel

self._cancel()


 "/home/rockers/frappe-bench/apps/frappe/frappe/model/document.py", line 843, in _cancel

self.save()


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

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


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

self.run_post_save_methods()


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

self.run_method("on_cancel")


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

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


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

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


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

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


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

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


 "/home/rockers/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 86, in on_cancel

from erpnext.hr.doctype.salary_slip.salary_slip import unlink_ref_doc_from_salary_slip


 "/home/rockers/frappe-bench/apps/erpnext/erpnext/hr/doctype/salary_slip/salary_slip.py", line 17, in <module>

from erpnext.hr.doctype.payroll_period.payroll_period import get_period_factor, get_payroll_period


 "/home/rockers/frappe-bench/apps/erpnext/erpnext/hr/doctype/payroll_period/payroll_period.py", line 8, in <module>

from frappe.utils import date_diff, getdate, formatdate, cint, month_diff, flt
ImportError: cannot import name month_diff`


Traceback (most recent call last):

 "/home/nacho/anaconda/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()

 "/home/nacho/anaconda/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)

 "/home/nacho/anaconda/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)

 "/home/nacho/anaconda/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()

 "/home/nacho/anaconda/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)

 "/home/nacho/Programming/bokeh/bokeh/server/crossdomain.py", line 32, in wrapped_function
resp = make_response(f(*args, **kwargs))

 "/home/nacho/Programming/bokeh/bokeh/server/views/main.py", line 130, in get_user
bokehuser = bokeh_app.current_user()

 "/home/nacho/Programming/bokeh/bokeh/server/app.py", line 33, in current_user
return self.authentication.current_user()

 "/home/nacho/Programming/bokeh/bokeh/server/server_backends.py", line 185, in current_user
bokehuser = user.User.load(bokeh_app.servermodel_storage, username)

 "/home/nacho/Programming/bokeh/bokeh/server/models/user.py", line 59, in load
attrs = cls.load_json(client, objid)

 "/home/nacho/Programming/bokeh/bokeh/server/models/__init__.py", line 36, in load_json
data = client.get(cls.modelkey(objid))

 "/home/nacho/Programming/bokeh/bokeh/server/server_backends.py", line 94, in get
_data = shelve.open('bokeh.server')

 "/home/nacho/anaconda/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)

 "/home/nacho/anaconda/lib/python2.7/shelve.py", line 223, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)

 "/home/nacho/anaconda/lib/python2.7/anydbm.py", line 84, in open
mod = __import__(result)

 "/home/nacho/anaconda/lib/python2.7/dbhash.py", line 7, in <module>
import bsddb

 "/home/nacho/anaconda/lib/python2.7/bsddb/__init__.py", line 67, in <module>
import _bsddb
ImportError: No module named _bsddb