Traceback (most recent call last):

 "/usr/local/bin/acd_cli", line 9, in <module>
load_entry_point('acdcli==0.3.0a6', 'console_scripts', 'acd_cli')()

 "/usr/local/bin/acd_cli.py", line 1248, in main
cache = db.NodeCache(CACHE_PATH, args.check)

 "/usr/local/lib/python3.4/dist-packages/acdcli/cache/db.py", line 64, in __init__
raise e

 "/usr/local/lib/python3.4/dist-packages/acdcli/cache/db.py", line 58, in __init__
uninitialized = not self.engine.has_table(schema.Metadate.__tablename__) and \

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 2069, in has_table
return self.run_callable(self.dialect.has_table, table_name, schema)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 1972, in run_callable
return conn.run_callable(callable_, *args, **kwargs)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 1477, in run_callable
return callable_(self, *args, **kwargs)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/dialects/sqlite/base.py", line 1127, in has_table
connection, "table_info", table_name, schema=schema)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/dialects/sqlite/base.py", line 1468, in _get_table_pragma
cursor = connection.execute(statement)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 906, in execute
return self._execute_text(object, multiparams, params)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 1054, in _execute_text
statement, parameters

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

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
exc_info

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/util/compat.py", line 188, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=exc_value)

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/util/compat.py", line 181, in reraise
raise value.with_traceback(tb)

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

 "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: 'PRAGMA table_info("metadata")']
Traceback (most recent call last):

 "localsync.py", line 79, in get_dates
query = Image.select().join(Treatment).where(Image.date == Treatment.date)

 "C:\Python27\lib\site-packages\peewee.py", line 257, in inner
func(clone, *args, **kwargs)

 "C:\Python27\lib\site-packages\peewee.py", line 2077, in join
raise ValueError('A join condition must be specified.')ValueError: A join condition must be specified.