ChatLearning——让bot学会你的群聊
-
开启回复后回复一段时间会发生报错,之后就完全不回复了,系统是w7,用linux方式部署的
Exception in thread Thread-5: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 870, in run self._target(*self._args, **self._kwargs) File "D:\ChatLearning.Linux\ChatReply.py", line 248, in main listening(data) File "D:\ChatLearning.Linux\ChatReply.py", line 239, in listening answer = getanswer(group, question) # 获取答案 File "D:\ChatLearning.Linux\ChatReply.py", line 148, in getanswer tempdict = eval(tempdict) File "<string>", line 0 ^ SyntaxError: unexpected EOF while parsing
-
@Sakura-azusa 之前有先开启记录吗,另外重新开启reply后是否还会出现
-
@Koreyoshi 训练模型已经放进去了
执行pip install espnet会有两个这样的错误
warning: missing-index-doctype× The package index page being used does not have a proper HTML doctype declaration.
╰─> Problematic URL: http://pypi.douban.com/simple/ctc-segmentation/note: This is an issue with the page at the URL mentioned above.
hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context.最后还会有一个这样的错误
Downloading http://pypi.doubanio.com/packages/57/5b/b97ef096df6824ed12919d6bdf538d50a53b5db572c222b3b2413b08bbbd/espnet-0.6.0-py3-none-any.whl (6.2 kB)
Collecting pytorch-wpe@ git+https://github.com/nttcslab-sp/dnn_wpe.git
Cloning https://github.com/nttcslab-sp/dnn_wpe.git to c:\users\wz178\appdata\local\temp\pip-install-lzqg0bbe\pytorch-wpe_6030d65853444437a4c22766dce7d68e
ERROR: Error [WinError 2] 系统找不到指定的文件。 while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH? -
@imi-123 这里聊比较不方便,加我qq吧,1121917292
-
@Koreyoshi 一直开启learning大概学了3天,期间更新了一次到最新版本,每次重启开启reply回复几句后必定触发
-
@Sakura-azusa 回退一个版本还会吗?有没有开启全局模式,cl文件有没有数据,这个bug原因有点奇怪,我没法复现,我下次更新尝试修复一下吧,
-
@Koreyoshi 退回版本同样复现,cl文件有数据
[{'type': 'Plain', 'text': '完了'}]答案已发送 65832 已获取答案,但不发送 检测到答案重复,重复次数已记录2022-03-08 15:59:47 答案已记录 ********.cl 检测到答案重复,重复次数已记录Exception in thread Thread-4: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 932, in _bootstrap_inner 2022-03-08 15:59:48 答案已记录 ********.cl self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 870, in run self._target(*self._args, **self._kwargs) File "D:\ChatLearningTEST\ChatReply.py", line 120, in main listening(data) File "D:\ChatLearningTEST\ChatReply.py", line 111, in listening answer = getanswer(group, question) # 获取答案 File "D:\ChatLearningTEST\ChatReply.py", line 50, in getanswer tempdict = eval(tempdict) File "<string>", line 0 ^ SyntaxError: unexpected EOF while parsing
配置参数
-
@Sakura-azusa 记录功能和回复功能都是打开的,全局没有开启,这是刚启动的参数,我是先添加需要学习的群和需要回复的群再开启学习和回复功能
-
@Sakura-azusa 试试开启全局模式还有没有此类状况?
-
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/root/cl/ChatReply.py", line 248, in main
listening(data)
File "/root/cl/ChatReply.py", line 239, in listening
answer = getanswer(group, question) # 获取答案
File "/root/cl/ChatReply.py", line 148, in getanswer
tempdict = eval(tempdict)
File "<string>", line 0^
SyntaxError: unexpected EOF while parsing
请问这个报错是什么问题 而且只要这个报错了 reply回复功能就是自动关闭 要重新开启 而且出现概率还挺高
-
@Koreyoshi 开启全局同样复现
2022-03-09 08:41:07 答案已记录 ********.cl 已获取答案,但不发送 检测到答案重复,重复次数已记录2022-03-09 08:41:31 答案已记录 ********.cl Exception in thread Thread-7: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\thread ing.py", line 870, in run self._target(*self._args, **self._kwargs) File "D:\ChatLearning.Linux\ChatReply.py", line 248, in main 2022-03-09 08:44:31 答案已记录 ********.cl listening(data) File "D:\ChatLearning.Linux\ChatReply.py", line 236, in listening if talkvoice(data,group,messagechain)==1: File "D:\ChatLearning.Linux\ChatReply.py", line 11, in talkvoice atmessage=messagechain[0] IndexError: list index out of range
-
@Sakura-azusa ok了解了,下个版本修复
-
@DongTing 了解,在加急修复了
-
@DongTing 尝试修复了一下,下载最新的release linux版本,再试试看会不会出现
-
@Sakura-azusa 重新下一下最新的release,看还会不会出现
-
关于将群添加进记录和回复这件事,能否实现新加入的群自动添加进目录中呢_(:з」∠)_
-
@rogue233 这个还是麻烦自己添加一下吧,毕竟不同人有不同需求,用learnings添加会方便点
-
@Koreyoshi 测试了一中午目前回复情况正常,应该是可以了
-
@Sakura-azusa 好的👌🏻
-
@Koreyoshi 用了几个小时 没出现上次那个问题 应该是好了