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

Running pulumi up in new project with python 3.10 prints deprecation warning #8129

Closed
komalali opened this issue Oct 4, 2021 · 0 comments · Fixed by #8130
Closed

Running pulumi up in new project with python 3.10 prints deprecation warning #8129

komalali opened this issue Oct 4, 2021 · 0 comments · Fixed by #8130
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec language/python resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Milestone

Comments

@komalali
Copy link
Member

komalali commented Oct 4, 2021

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already)

Issue details

Steps to reproduce

  1. Install python 3.10
  2. Run pulumi new aws-python
  3. Run pulumi up
  4. Observe output

Expected: No deprecation warning
Actual:

Updating (dev)

View Live: https://app.pulumi.com/komalali/blah/dev/updates/1

     Type                 Name       Status      Info
 +   pulumi:pulumi:Stack  blah-dev   created     2 messages
 +   └─ aws:s3:Bucket     my-bucket  created

Diagnostics:
  pulumi:pulumi:Stack (blah-dev):
    /opt/pulumi/bin/pulumi-language-python-exec:71: DeprecationWarning: There is no current event loop
      loop = asyncio.get_event_loop()

Outputs:
    bucket_name: "my-bucket-bc117c7"

Resources:
    + 2 created

Duration: 9s

This is due to the fact that asyncio.get_event_loop() now prints a deprecation warning when there is no running loop. See the docs for more info.

@komalali komalali added the kind/bug Some behavior is incorrect or out of spec label Oct 4, 2021
@komalali komalali self-assigned this Oct 4, 2021
@komalali komalali added this to the 0.63 milestone Oct 4, 2021
@emiliza emiliza added capacity/quality size/S Estimated effort to complete (1-2 days). labels Oct 5, 2021
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec language/python resolution/fixed This issue was fixed size/S Estimated effort to complete (1-2 days).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants