kexue-z / nonebot-plugin-heweather

MIT License
63 stars 11 forks source link

【显示错误】 #28

Closed Agnes4m closed 1 year ago

Agnes4m commented 2 years ago

python3.9.12,nonebot2=2.0.0b4,htmlrender也装了 之前还正常的,不知道哪次更新后就这样了,。

image

lancer-wang commented 2 years ago

+1

kexue-z commented 2 years ago

怎么复现 说说

lancer-wang commented 2 years ago

怎么复现 说说

感觉是和火狐浏览器的兼容有关,ubuntu默认用的是firefox

lancer-wang commented 2 years ago

browser.py 在nonebot-plugin-htmlrender 0.1.0版本改成了win用谷歌,linux用firefox 0,0,5一致是谷歌,我刚才装了0.0.5,样式就正常了 async def launch_browser(kwargs) -> Browser: assert _playwright is not None, "Playwright is not initialized" if "win" in platform.lower(): return await _playwright.chromium.launch(kwargs) else: return await _playwright.firefox.launch(**kwargs) image

怎么复现 说说

kexue-z commented 2 years ago

确实有这个可能 不过按道理说是不影响的

我在Mac上用了nonebot-plugin-htmlrender 0.1.0 是没有问题的

kexue-z commented 2 years ago

暂时先把 nonebot-plugin-htmlrender改为 0.0.5 运行

GC-ZF commented 2 years ago

版本已回退,插个眼,等好了回来更新