Skip to content
New issue

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

Deprecation warning for asyncio.get_event_loop() #61

Closed
rrawlins opened this issue Jan 13, 2023 · 1 comment
Closed

Deprecation warning for asyncio.get_event_loop() #61

rrawlins opened this issue Jan 13, 2023 · 1 comment

Comments

@rrawlins
Copy link

When using the tool via vscode, I'm seeing the following deprecation warning:

C:\Users\1G0570897\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tnz\tnz.py:3790: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

Documenting here as an FYI.

@najohnsn
Copy link
Member

najohnsn commented Jul 5, 2023

With #71, use of Ati will no longer result in this deprecation warning. There are still cases where you may see it when using Tnz directly - but some of those warning are going away in newer versions of Python and in those newer versions the warning can be prevented if the user specifically sets the current event loop.

@najohnsn najohnsn closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants