大佬,更新到最新版本以后,机器人启动不了了,清空词库以后也是这样的,显示下面的报错:
ChatLearning git:(master) ✗ python3.7 Chatmain.py Traceback (most recent call last):
File "Chatmain.py", line 31, in <module>
import ChatStock
File "/root/ChatLearning/ChatStock.py", line 9, in <module>
def create_word_stock(word_tock_tuple_list:list[tuple],filename:str):
TypeError: 'type' object is not subscriptable
我看GitHub上也有相同的issue,也没有解决,能帮忙看下是不是我设置错了吗?
cold233 发布的最佳帖子
-
RE: ChatLearning——让bot学会你的群聊
cold233 发布的最新帖子
-
RE: ChatLearning——让bot学会你的群聊
大佬,更新到最新版本以后,机器人启动不了了,清空词库以后也是这样的,显示下面的报错:
ChatLearning git:(master) ✗ python3.7 Chatmain.py Traceback (most recent call last):
File "Chatmain.py", line 31, in <module>
import ChatStock
File "/root/ChatLearning/ChatStock.py", line 9, in <module>
def create_word_stock(word_tock_tuple_list:list[tuple],filename:str):
TypeError: 'type' object is not subscriptable
我看GitHub上也有相同的issue,也没有解决,能帮忙看下是不是我设置错了吗? -
RE: [mirai-api-http]梗查询插件——GengSearch
大佬,遇到了问题:Listening……
Get mission
Searchid: 230982967
infoUrl: https://jikipedia.com/definition/230982967
Error
错误详情:
Traceback (most recent call last):
File "./GengSearch.py", line 174, in Search
title=soup.select('.title-container')[0]
IndexError: list index out of rangesave log
save logListening……
Get mission
Searchid: 230982967
infoUrl: https://jikipedia.com/definition/230982967
Error
错误详情:
Traceback (most recent call last):
File "./GengSearch.py", line 174, in Search
title=soup.select('.title-container')[0]
IndexError: list index out of rangesave log
save logListening……
Searchlist.html如下:
出现问题后已经更新了cookie,仍然出现相同问题
请问是什么情况?