我似乎无法弄清楚chatterbot在这里发生了什么

时间:2020-06-18 12:34:46

标签: python chatterbot

当我尝试使用chatterbot训练机器人时,显示此错误消息:

回溯(最近通话最近一次):

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行2228,在_wrap_pool_connect中 返回fn()

connect中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,行434 返回_ConnectionFairy._checkout(self)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第831行,在_checkout中 fairy = _ConnectionRecord.checkout(pool)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第563行,已签出 rec =游泳池._do_get()

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,行1355,在_do_get中 返回self._create_connection()

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第379行,在_create_connection中 返回_ConnectionRecord(self)

“ strong:init 中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第508行 self .__ connect(first_connect_check = True)

文件__connect中的“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”行722 pool.dispatch.connect(self.connection,self)

在“ 调用”中的第259行“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ event \ attr.py” fn(* args,** kw)

set_sqlite_pragma中的第43行,文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ chatterbot \ storage \ sql_storage.py” dbapi_connection.execute('PRAGMA journal_mode = WAL')

sqlite3.OperationalError:无法从事务内更改为wal模式

上述异常是以下异常的直接原因:

回溯(最近通话最近一次):

文件“ D:/A.I/training.py”,第4行,在 bot = ChatBot('Test')

init 中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ chatterbot \ chatterbot.py”,第34行 self.storage = utils.initialize_class(s​​torage_adapter,** kwargs)

initialize_class中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ chatterbot \ utils.py”,第47行 返回Class(* args,** kwargs)

init 中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ chatterbot \ storage \ sql_storage.py”,第46行 如果不是self.engine.dialect.has_table(self.engine,'Statement'):

has_table中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ dialects \ sqlite \ base.py”,行1357 连接,“ table_info”,table_name,schema = schema

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ dialects \ sqlite \ base.py”,行1799,在_get_table_pragma中 cursor = connection.execute(statement)

在执行中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行2143 连接= self.contextual_connect(close_with_result = True)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行2192,在contextual_connect中 self._wrap_pool_connect(self.pool.connect,无),

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行2232,在_wrap_pool_connect中 e,方言,自我

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行1528,在_handle_dbapi_exception_noconnection中 util.raise_from_cause(sqlalchemy_exception,exc_info)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ util \ compat.py”,第296行,在raise_from_cause中 reraise(type(exception),exception,tb = exc_tb,cause = cause)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ util \ compat.py”,第276行,重新发行 提高价值。with_traceback(tb)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ engine \ base.py”,行2228,在_wrap_pool_connect中 返回fn()

在连接中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,行434 返回_ConnectionFairy._checkout(self)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第831行,在_checkout中 fairy = _ConnectionRecord.checkout(pool)

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第563行,已签出 rec =游泳池._do_get()

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,行1355,在_do_get中 返回self._create_connection()

文件_create_connection中的“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”行379 返回_ConnectionRecord(self)

“ strong:init 中的文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”,第508行 self .__ connect(first_connect_check = True)

文件__connect中的“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ pool.py”行722 pool.dispatch.connect(self.connection,self)

在“ 调用”中的第259行“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ sqlalchemy \ event \ attr.py” fn(* args,** kw)

set_sqlite_pragma中的第43行,文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python36 \ site-packages \ chatterbot \ storage \ sql_storage.py” dbapi_connection.execute('PRAGMA journal_mode = WAL')

sqlalchemy.exc.OperationalError:(sqlite3.OperationalError)无法从事务内更改为wal模式(此错误的背景位于:http://sqlalche.me/e/e3q8

以退出代码1完成的过程

0 个答案:

没有答案