CMHopeSunshine / LittlePaimon

小派蒙!基于Nonebot2的原神机器人,包括但不限于UID面板查询、抽卡记录分析、游戏攻略图鉴、实时便签、原石札记、群聊学习、群管等功能。/ LittlePamon! Genshin Impact multifunctional bot based on Nonebot2.
https://docs.paimon.cherishmoon.top
GNU Affero General Public License v3.0
1.15k stars 126 forks source link

机器人不回复 #311

Closed HTTE-lx closed 2 years ago

HTTE-lx commented 2 years ago

跟教程安装完之后私聊机器人不回复 image

HTTE-lx commented 2 years ago

启动过程中(执行poetry run nb run后)报的错误: [ERROR] nonebot | Failed to import "nonebot_plugin_apscheduler" ModuleNotFoundError: No module named 'nonebot_plugin_apscheduler' [ERROR] nonebot | Failed to import "nonebot_plugin_myb_exchange" RuntimeError: Cannot load plugin "nonebot_plugin_apscheduler"! [ERROR] nonebot | Failed to import "LittlePaimon" ModuleNotFoundError: No module named 'tortoise'

forchannot commented 2 years ago

自己先poetry install检查下依赖安装完没有

HTTE-lx commented 2 years ago

自己先poetry install检查下依赖安装完没有

image 我使用这个指令会报错,所以我用的poetry run pip install -r requirements.txt安装依赖

forchannot commented 2 years ago

自己先poetry install检查下依赖安装完没有

image 我使用这个指令会报错,所以我用的poetry run pip install -r requirements.txt安装依赖

这个的依赖不全

HTTE-lx commented 2 years ago

自己先poetry install检查下依赖安装完没有

image 我使用这个指令会报错,所以我用的poetry run pip install -r requirements.txt安装依赖

这个的依赖不全

那。。那怎么办

forchannot commented 2 years ago

提示你缺啥补啥,https://github.com/CMHopeSunshine/LittlePaimon/issues/310

HTTE-lx commented 2 years ago

执行 poetry run pip install nonebot_plugin_apscheduler poetry run pip install nonebot_plugin_myb_exchange poetry run pip install LittlePaimon poetry run pip install tortoise 四条语句后还是提示缺少这几个插件

CMHopeSunshine commented 2 years ago
poetry run pip install tortoise-orm
poetry run pip install nonebot_plugin_apscheduler==0.2.0
HTTE-lx commented 2 years ago
poetry run pip install tortoise-orm
poetry run pip install nonebot_plugin_apscheduler==0.2.0

现在还是会报这两个错误:

[ERROR] nonebot | Failed to import "LittlePaimon"

ModuleNotFoundError: No module named 'tortoise'

CMHopeSunshine commented 2 years ago

把之前装错的tortoise卸载掉:

poetry run pip uninstall tortoise
poetry run pip install tortoise-orm
HTTE-lx commented 2 years ago

还是会报这俩错误......

CMHopeSunshine commented 2 years ago

那估计环境是搞乱了,建议把现在的虚拟环境删掉重新装

HTTE-lx commented 2 years ago

python,poetry,git和ffmpeg全部重装吗?

CMHopeSunshine commented 2 years ago

自己先poetry install检查下依赖安装完没有

image 我使用这个指令会报错,所以我用的poetry run pip install -r requirements.txt安装依赖

看这个,感觉你的python不完整,重装一下python

CMHopeSunshine commented 2 years ago

python,poetry,git和ffmpeg全部重装吗?

git和ffmpeg不用

HTTE-lx commented 2 years ago

好的我现在就卸载重装

HTTE-lx commented 2 years ago

image 我重新安装了python3.9.10和python3.10.8并都在cmd中使用“pip install poetry”安装了poetry,两个版本执行poetry install都会报错

forchannot commented 2 years ago

你用的好像是git bash吧,换成powershell试试。 如果还是这样的话建议用miniconda搭配全局的poetry,去poetry官网找全局安装命令,不使用pip安装poetry,随后用poetry config virtualenvs.create false关闭poetry创建虚拟环境使用conda来管理虚拟环境避免冲突 我自己写了篇教程,虽然是ubuntu的,但是windwos流程基本是一样的,只是命令和安装方法不同https://github.com/forchannot/selfmarkdown/blob/main/ubuntu安装LittlePaimon.md