我正在使用 Ubuntu 16.04 服务器,我创建了一个烧瓶应用程序并使用 apache_wsgi 脚本托管。个别。我的python文件如下
chatbot = ChatBot(
'Dan',
storage_adapter="chatterbot.storage.SQLStorageAdapter"
)
chatbot.set_trainer(ChatterBotCorpusTrainer)
chatbot.train(`
`"chatterbot.corpus.english.greetings"
)
def chat(text):
response = chatbot.get_response(text)
if response.confidence >= 0.8:
return response
else:
pass
当我单独运行它时,它正在运行,但是当我使用烧瓶应用程序时,它给出了一个错误。
我已经把错误日志
[client 71.6.232.4:41358] sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8)