Soulter / AstrBot

QQ、Telegram、微信 等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
597 stars 60 forks source link

报错 #119

Closed ewsk233 closed 1 year ago

ewsk233 commented 1 year ago

系统centos7.6 依赖库安装完毕。 Field "modelshow" has conflict with protected namespace "model" 第三方依赖库未完全安装完毕,请退出程序重试。 退出后显示 Traceback (most recent call last): File "/home/QQChannelChatGPT/main.py", line 9, in main import cores.qqbot.core as qqBot File "/home/QQChannelChatGPT/cores/qqbot/core.py", line 16, in from model.platform.qq import QQ File "/home/QQChannelChatGPT/model/platform/qq.py", line 1, in from nakuru.entities.components import Plain, At, Image, Node File "/usr/python/lib/python3.11/site-packages/nakuru/init.py", line 1, in from .application import CQHTTP File "/usr/python/lib/python3.11/site-packages/nakuru/application.py", line 14, in from .event import InternalEvent, ExternalEvent File "/usr/python/lib/python3.11/site-packages/nakuru/event/init.py", line 6, in from .enums import ExternalEventTypes File "/usr/python/lib/python3.11/site-packages/nakuru/event/enums.py", line 1, in from .models import File "/usr/python/lib/python3.11/site-packages/nakuru/event/models.py", line 5, in from ..entities import Friend, Member, Anonymous, File, OfflineFile, Device, GuildMember, Reaction, Channel File "/usr/python/lib/python3.11/site-packages/nakuru/entities/init.py", line 6, in from .others import File "/usr/python/lib/python3.11/site-packages/nakuru/entities/others.py", line 104, in class ModelShow(BaseModel): File "/usr/python/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 171, in new set_model_fields(cls, bases, config_wrapper, types_namespace) File "/usr/python/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 361, in set_model_fields fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/python/lib/python3.11/site-packages/pydantic/_internal/_fields.py", line 112, in collect_model_fields raise NameError(f'Field "{ann_name}" has conflict with protected namespace "{protected_namespace}"') NameError: Field "modelshow" has conflict with protected namespace "model"

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/QQChannelChatGPT/main.py", line 122, in main() File "/home/QQChannelChatGPT/main.py", line 15, in main input("第三方依赖库未完全安装完毕,请退出程序重试。") KeyboardInterrupt

Pwn1996 commented 1 year ago

我也是,卡这一步了

Soulter commented 1 year ago

重复issue,请看:#120