We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
环境:python3.11 bilibili_api.__init__.py中
python3.11
bilibili_api.__init__.py
BILIBILI_API_VERSION = "16.1.1" # 如果系统为 Windows,则修改默认策略,以解决代理报错问题 if "windows" in platform.system().lower(): asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # type: ignore
此处代码会导致一些默认使用WindowsProactorEventLoopPolicy的第三方库报错,如:nonebot中_make_subprocess_transport继承自WindowsProactorEventLoopPolicy
WindowsProactorEventLoopPolicy
nonebot
_make_subprocess_transport
The text was updated successfully, but these errors were encountered:
先贴一个链接,有关你出现的问题:https://github.com/orgs/nonebot/discussions/13 ,当然如果你找到了当我没说。
如果你按照那里的这么去做,其实无非只有一个影响:不能用 aiohttp 的代理。但是 这个模块也是支持 httpx 的,所以如果真的需要代理,你可以考虑使用 httpx 进行请求。
但是现在 httpx 又有一个问题:不支持 websocket,因此 LiveDanmaku 和 VideoOnlineMonitor 还是得用回 aiohttp,这个时候你又不能用代理了。
LiveDanmaku
VideoOnlineMonitor
aiohttp
所以……建议自行进行权衡。
最后贴张表:当你按照开头给的链接对这个问题进行处理后,模块对不同功能的支持情况:
login.py
Sorry, something went wrong.
No branches or pull requests
环境:
python3.11
bilibili_api.__init__.py
中此处代码会导致一些默认使用
WindowsProactorEventLoopPolicy
的第三方库报错,如:nonebot
中_make_subprocess_transport
继承自WindowsProactorEventLoopPolicy
The text was updated successfully, but these errors were encountered: