chat
chat copied to clipboard
版本过于老化问题,寻求帮助
1 数据库nlu.db文件过于老化,用目前的neo4j版本启动会报错,这个已经是配置里设置了兼容升级旧数据库配置了
2021-08-05 01:52:32.764+0000 ERROR [nlu.db/875c1c1b] Error upgrading database. Database left intact and will likely not be able to start: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: Not possible to upgrade a store with version 'v0.A.7' to current store version AF4.3.0 (Neo4j 4.3.2).
2 所以目前我用的neo4j默认生成数据库,按照文档改了数据库密码
启动test_server.py和test_client.py,server端经常报错
127.0.0.1 wrote:
Data:
{"userid": "A0001", "key": "A0001", "ask_type": "txt", "ask_content": "\u4f60\u8bf4\u4ec0\u4e48", "state": "robotstate"}
用户: A0001
已有知识库列表: ['基础问答']
采用默认城市: 城市
['ni', 'shuo', 'shen', 'me']
Exception happened during processing of request from ('127.0.0.1', 35684) Traceback (most recent call last): File "/usr/lib64/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/lib64/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib64/python3.6/socketserver.py", line 724, in init self.handle() File "/usr/local/lib/python3.6/site-packages/chat/server.py", line 66, in handle userid=json_data["userid"], key=json_data["key"]) File "/usr/local/lib/python3.6/site-packages/chat/mytools.py", line 243, in _wrapper result = func(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/chat/qa.py", line 744, in search with open(log_do_not_know, "a", encoding="UTF-8") as file: FileNotFoundError: [Errno 2] No such file or directory: 'C:/nlu/log/do_not_know.txt' 而且我已经在self.conf里修改了这些文件路径,但还是去找之前没改之前的配置-C盘下的文件 同时client端也报错 [root@VM-4-6-centos tests]# python3 test_client.py ...
question=你说什么 E ====================================================================== ERROR: test_start (main.TestMe)
Traceback (most recent call last): File "test_client.py", line 47, in test_start start(userid=self.userid, key=self.key) File "/usr/local/lib/python3.6/site-packages/chat/client.py", line 121, in start print(json.loads(result)['content']) File "/usr/lib64/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Ran 4 tests in 6.379s
FAILED (errors=1) 1 麻烦看一下是什么问题 2 可不可以把所有支持库更新为目前最新版本兼容的版本再上传一次呢