Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python bot.py 出现错误ModuleNotFoundError: No module named 'nonebot.adapters.onebot #1515

Open
LoganHaiz opened this issue Jan 28, 2024 · 3 comments

Comments

@LoganHaiz
Copy link

系统版本:Windows 10 LTSC 1809

真寻版本:0.1.6.7

错误截图

P1
Screenshot 2024-01-29 041318
P2
Screenshot 2024-01-29 041653

日志截图

[img]

错误说明

Python版本3.10.0
每一步都严格按照文档操作,但到文档[https://hibikier.github.io/zhenxun_bot/docs/installation_doc/install_zhenxun.html]中步骤一,第四行poetry shell进入虚拟环境后,playwright不是内部或外部命令,也不是可运行的程序《P1》
如果跳过playwright的两条命令直接执行第三、四步,在第五步时在zhenxun_bot-main目录下运行cmd:python bot.py 出现错误ModuleNotFoundError: No module named 'nonebot.adapters.onebot' 《P2》

@HibiKier
Copy link
Owner

可以在 poetry shell 后 执行 python -m playwright install chromium 试试

python bot.py同样需要在poetry shell之后执行
图片

@LoganHaiz
Copy link
Author

Screenshot 2024-01-29 233517 进入poetry shell正常,但提示No module named playwright

@HibiKier
Copy link
Owner

你poetry install运行了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants