GraiaCommunity / Docs

Graia 社区文档
https://graiax.cn/
Other
21 stars 8 forks source link

Demo 运行失败 #100

Closed sudoskys closed 1 year ago

sudoskys commented 1 year ago

https://graiax.cn/guide/hello_ero

from creart import create 不明确

Traceback (most recent call last):
  File "/home/nano/Project/test/graia_.py", line 7, in <module>
    from creart import create
  File "/home//miniconda3/envs/LLM/lib/python3.9/site-packages/creart/__init__.py", line 113, in <module>
    _env_scan()
  File "/home//miniconda3/envs/LLM/lib/python3.9/site-packages/creart/__init__.py", line 37, in _env_scan
    add_creator(creator)
  File "/home//miniconda3/envs/LLM/lib/python3.9/site-packages/creart/__init__.py", line 43, in add_creator
    raise ValueError(f"conflict target for {', '.join(intersection)}")
ValueError: conflict target for asyncio.events:AbstractEventLoop
Redlnn commented 1 year ago

请按顺序执行以下命令(注意请将 pip 替换为你的 miniconda 3 的 pip

pip uninstall graia-ariadne graia-broadcast graia-amnesia graia-saya graia-scheduler creart creart-graia launart
pip install creart==0.3.0 launart==0.6.4 graia-ariadne[full]
sudoskys commented 1 year ago

感谢您的回复,问题已解决!

Redlnn commented 1 year ago

感谢您的回复,问题已解决!

Ariadne 目前已停止更新,推荐使用 GraiaProject/Avilla,Avilla 自带跨平台特性(不过仍在开发适配中,可加群交流,邀请连接在这里),写法与 Ariadne 类似

一使用 Avilla 接入 QQ 的示例