Traceback (most recent call last):

 "/usr/local/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)

 "/usr/local/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)

 "/usr/local/lib/python3.4/site-packages/MySQLdb/cursors.py", line 226, in execute
self.errorhandler(self, exc, value)

 "/usr/local/lib/python3.4/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue

 "/usr/local/lib/python3.4/site-packages/MySQLdb/cursors.py", line 217, in execute
res = self._query(query)

 "/usr/local/lib/python3.4/site-packages/MySQLdb/cursors.py", line 378, in _query
rowcount = self._do_query(q)

 "/usr/local/lib/python3.4/site-packages/MySQLdb/cursors.py", line 341, in _do_query
db.query(q)

 "/usr/local/lib/python3.4/site-packages/MySQLdb/connections.py", line 280, in query
_mysql.connection.query(self, query)_mysql_exceptions.IntegrityError: (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`homeassistant`.`states`, CONSTRAINT `states_ibfk_1` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`))')
Traceback (most recent call last):

 "/opt/sublime_text_3/sublime_plugin.py", line 320, in on_deactivated
callback.on_deactivated(v)

 "/home/user/.config/sublime-text-3/Packages/orgmode/orgmode_store.py", line 41, in on_deactivated
self.save(view, 'on_deactivated')

 "/home/user/.config/sublime-text-3/Packages/orgmode/orgmode_store.py", line 90, in save
with Gzip
(self.store, 'wb') as f:

 "./gzip.py", line 184, in __init__
NotFoundError: [Errno 2] No such file or directory: '/opt/sublime_text_3/Settings/orgmode-store.bin.gz'