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 127 forks source link

[问题]系统不支持Playwright #408

Open xwtlt opened 1 year ago

xwtlt commented 1 year ago

确认

环境信息

问题描述

运行nb paimon run后运行一半报错,日志如下

问题截图

Screenshot_20230315_194246_com termux Screenshot_20230315_194325_com termux

CMHopeSunshine commented 1 year ago

运行nb paimon run playwright install

xwtlt commented 1 year ago

运行后出现新的错误

Failed to install browsers
Error: ERROR: Playwright does not support firefox on ubuntu18.04-arm64
CMHopeSunshine commented 1 year ago

错误:Playwright在ubuntu18.04-arm64上不支持firefox

CMHopeSunshine commented 1 year ago

可删除部分相关Playwright功能,参考#405

nanxu2019 commented 1 year ago

Windows系统居然也被Playwright坑了... 005B4D98

QAQQL commented 1 year ago

当我今天更新了依赖后,出现 [pid=7764][err] [0424/035417.465:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\Users\Administrator\AppData\Local\ms-playwright\chromium-1055\chrome-win\chrome.dll 我的原始版本chromium-1041没有问题,请问我该如何指定Playwright下载的chrome版本呢

QAQQL commented 1 year ago

https://playwright.dev/python/docs/release-notes#version-129 查询官方文档得知 https://playwright.dev/python/docs/release-notes#browser-versions-3 Browser Versions

Chromium 109.0.5414.46
Mozilla Firefox 107.0
WebKit 16.4

This version was also tested against the following stable channels:

Google Chrome 108
Microsoft Edge 108

pip install "playwright==1.29" 降级后可用