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

vmware_rest: DeprecationWarning: There is no current event loop #68

Open
mariolenz opened this issue Nov 3, 2023 · 2 comments
Open

Comments

@mariolenz
Copy link
Contributor

When running sanity tests with ansible-core 2.16 in vmware.vmware_rest I see:

Running sanity test "import" on Python 3.12
Run command with data: importer.py
Run command with data: importer.py
ERROR: Found 132 import issue(s) on python 3.12 which need to be resolved:
ERROR: plugins/modules/appliance_access_consolecli.py:256:0: traceback: DeprecationWarning: There is no current event loop
.
.
.

ansible-collections/vmware.vmware_rest#432

It looks like you might have to generate different code. At least if you want the sanity tests to succeed. But the message sounds like the code might even break / fail, although I'm not sure what exactly it means. Didn't have the time to investigate yet.

@mariolenz
Copy link
Contributor Author

Just to make sure this isn't already fixed, I've re-created the modules and still see this issue: ansible-collections/vmware.vmware_rest#435

@mariolenz mariolenz changed the title DeprecationWarning: There is no current event loop vmware_rest: DeprecationWarning: There is no current event loop Nov 6, 2023
@mariolenz
Copy link
Contributor Author

From asyncio.get_event_loop():

As noted above, consider using the higher-level asyncio.run() function, instead of using these lower level functions to manually create and close an event loop.

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

1 participant