module 'winloop' has no attribute 'WinLoopPolicy'
python version: 3.9.13
On Tue, Aug 6, 2024 at 9:34 PM YANGY @.***> wrote:
python version: 3.9.13 _17230016294711.png (view on web) https://github.com/user-attachments/assets/955a038d-0d02-41b3-a5dc-536b969bb8a2
— Reply to this email directly, view it on GitHub https://github.com/Vizonex/Winloop/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K7GGUONQGZ4M6Q6Q6N3U3ZQGITZAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TEMRRHE3TGNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
its deprecated. Use the BaseEventLoop IIRC. I got rid of it to be as close to Uvloop as possible.
Winloop is already deprecated?
On Wed, Aug 7, 2024 at 7:03 PM YANGY @.***> wrote:
Winloop is already deprecated?
— Reply to this email directly, view it on GitHub https://github.com/Vizonex/Winloop/issues/31#issuecomment-2274678641, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K7GGWJLQJJ4IEZWKEY7BTZQK7XVAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGY3TQNRUGE . You are receiving this because you commented.Message ID: @.***>
No, but the old policy name is deprecated in replacement of BaseEventLoopPolicy. I even gave other developers a warning that WinloopPolicy would be replaced by the following name.
On Wed, Aug 7, 2024 at 7:03 PM YANGY @.> wrote: Winloop is already deprecated? — Reply to this email directly, view it on GitHub <#31 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K7GGWJLQJJ4IEZWKEY7BTZQK7XVAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGY3TQNRUGE . You are receiving this because you commented.Message ID: @.> 2024年8月7日星期三下午7:03 YANGY @. *>写道: Winloop已经过时了吗?
— 直接回复此电子邮件,在GitHub上查看 < #31 (comment) >, 或取消订阅 https://github.com/notifications/unsubscribe-auth/A3K7GGWJLQJJ4IEZWKEY7BTZQK7XVAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGY3TQNRUGE . 您收到此邮件是因为您发表了评论。 @.***> No, but the old policy name is deprecated in replacement of BaseEventLoopPolicy. I even gave other developers a warning that WinloopPolicy would be replaced by the following name. 否,但旧策略名称已弃用, BaseEventLoopPolicy。我甚至警告其他开发人员, WinloopPolicy将被替换为以下名称。
AttributeError: module 'winloop' has no attribute 'BaseEventLoopPolicy'
On Wed, Aug 7, 2024 at 7:03 PM YANGY @.> wrote: Winloop is already deprecated? — Reply to this email directly, view it on GitHub <#31 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K7GGWJLQJJ4IEZWKEY7BTZQK7XVAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGY3TQNRUGE . You are receiving this because you commented.Message ID: _@**._> 2024年8月7日星期三下午7:03 YANGY @. *>写道: Winloop已经过时了吗? — 直接回复此电子邮件,在GitHub上查看 < #31 (comment) >, 或取消订阅 https://github.com/notifications/unsubscribe-auth/A3K7GGWJLQJJ4IEZWKEY7BTZQK7XVAVCNFSM6AAAAABMDQZHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGY3TQNRUGE . 您收到此邮件是因为您发表了评论。 _@_.*> No, but the old policy name is deprecated in replacement of BaseEventLoopPolicy. I even gave other developers a warning that WinloopPolicy would be replaced by the following name. 否,但旧策略名称已弃用, BaseEventLoopPolicy。我甚至警告其他开发人员, WinloopPolicy将被替换为以下名称。
AttributeError: module 'winloop' has no attribute 'BaseEventLoopPolicy'
See: https://github.com/Vizonex/Winloop/blob/main/winloop/init.py#L144 Example:
import asyncio
import winloop
asyncio.set_event_loop_policy(winloop.EventLoopPolicy())
asyncio.get_event_loop()
@yangy996 Name is EventLoopPolicy Hopefully this now fixes your problem.
