Comments (14)
推断几点:
- 估计是网页没有载入出来。但是这些html基本都是本地的,所以资源应该没问题
- 也有可能是playwright的内核无响应了,看看内存的占用情况
- 可以自行参考playwright的文档写一个截图的代码,看看是否正常工作
- 如果不行只能更换环境了,建议 docker 试试这个 内置了我一般用到的东西
from nonebot-plugin-htmlrender.
有挂代理吗,有没有可能是代理的原因
from nonebot-plugin-htmlrender.
有挂代理吗,有没有可能是代理的原因
确实 可能全局代理不通也会这样
from nonebot-plugin-htmlrender.
有挂代理吗,有没有可能是代理的原因
有挂代理吗,有没有可能是代理的原因
确实 可能全局代理不通也会这样
应该不是代理的问题,如果是代理问题的话应该一开始就不能用,我现在是正常运行了一两天这些插件后才出现上诉问题,刚才尝试了配置代理,还是相同的结果
from nonebot-plugin-htmlrender.
有挂代理吗,有没有可能是代理的原因
有挂代理吗,有没有可能是代理的原因
确实 可能全局代理不通也会这样
应该不是代理的问题,如果是代理问题的话应该一开始就不能用,我现在是正常运行了一两天这些插件后才出现上诉问题,刚才尝试了配置代理,还是相同的结果
shindan里将输出模式改成文本的话,可以正常运行,可以确定是screenshot的问题
尝试了一下卸载再重新安装,当使用 python -m playwright install 命令安装浏览器依赖时,没有任何提示,正常使用的话会显示下载浏览器的进度,有没有可能是这里出了问题
同时playwright文件中应该是缺东西了
from nonebot-plugin-htmlrender.
没有提示可能是已经下好了
有没有试过 自己写一段截图的运行一下看看?
如果实在不行只能docker了
from nonebot-plugin-htmlrender.
没有提示可能是已经下好了
有没有试过 自己写一段截图的运行一下看看?
如果实在不行只能docker了
重装系统解决了,也不知道是哪里出的问题。
谢谢两位佬提供的帮助。
from nonebot-plugin-htmlrender.
悲报,刚启动没半个小时,再次出现了相同的问题
自己写了个截图方法正常运行,并截图
同时出现了一些新的报错
Target page, context or browser has been closed(在logs中显示的,没有截图上)
程序中关闭了playwright后,再次正常。
看来是playwright卡死,我再观察观察卡死的原因吧。
是否可能是配置过低导致?我的服务器是2核2G
from nonebot-plugin-htmlrender.
我放弃思考了 快使用docker
from nonebot-plugin-htmlrender.
同样的情况,已经头疼很多天了。插件加载顺序更改一遍也是同样的报错
from nonebot-plugin-htmlrender.
可以详细说一下服务器是什么配置吗?如何复现等操作
from nonebot-plugin-htmlrender.
回头我自己写一个截图的插件试试,不自己动手确实不好理解,还是谢谢大佬了
from nonebot-plugin-htmlrender.
不建议使用系统自带py环境运行bot 建议使用miniconda或者poetry
from nonebot-plugin-htmlrender.
我这边有群友也复现了这个问题
使用sudo nb run必现playwright Timeout,直接nb run就没问题
多半是系统环境的问题,还是推荐使用conda管理)
from nonebot-plugin-htmlrender.
Related Issues (20)
- playwright一直更新是怎么回事啊? HOT 5
- 请求添加更自由的截图配置 HOT 7
- playwright._impl._api_types.Error: Executable doesn't exist HOT 1
- wsl平台渲染时两个内核均出现问题 HOT 1
- 导入时出现了很奇怪的报错 HOT 2
- AttributeError: module 'attr' has no attribute 'frozen' HOT 14
- 能否放宽aiofiles依赖的版本限制 HOT 2
- 导入ERROR,是否缺少什么? HOT 1
- 是否有方法可以提升图片的清晰度 HOT 1
- 纯编程小白,想问下安装该插件后启动期间报这个错 HOT 7
- 话说有没有可选字体或者字号的选项啊 HOT 2
- 使用htmlrender会导致nb的--reload参数在重启时卡死 HOT 4
- 使用插件计算原神队伍伤害报错 HOT 1
- 安装依赖chrome后,报错 HOT 5
- 无法启动playwright,会默认重新下载失败报错 HOT 3
- version `GLIBC_2.28' not found HOT 3
- 安装后bot启动闪退,没但报错信息 HOT 1
- markdown 表格转图片样式 HOT 3
- htmlrender_proxy_host到底需要怎么配置 HOT 1
- 请教一下html2img如何使用本地图片资源 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonebot-plugin-htmlrender.