CMHopeSunshine / nonebot-plugin-learning-chat

Nonebot2插件,让Bot学习群友的发言和表情包。/ Nonebot2 plugin to learn what your group members say.
GNU Affero General Public License v3.0
164 stars 5 forks source link

ImportError: cannot import name 'ColumnList' from 'amis' #36

Closed molanp closed 1 year ago

molanp commented 1 year ago

看了一圈没看到有人问这个,gpt也没告诉我答案 代码是昨天直接code的 以下是错误部分以及输出

from amis import ColumnList, AmisList, ActionType, TableCRUD, TableColumn
ImportError: cannot import name 'ColumnList' from 'amis' (C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-AaQaxJK--py3.9\lib\site-packages\amis\__init__.py)
CMHopeSunshine commented 1 year ago

装错库了吧?是amis-python而不是amis

CMHopeSunshine commented 1 year ago

如果是pip install 本插件或者nb plugin install不会出现这种情况的啊,是手动安装的依赖吗?是的话,请把amis卸载后再安装回amis-python

molanp commented 1 year ago

噢我装的amis,我试一下

molanp commented 1 year ago

正常运行了,但是现在遇到了

34 #19 的问题,看起来是orm导致的数据库读取冲突,目前好像无法解决