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

Loop Argument Deprecated #1182

Closed
pizzakid25 opened this issue Feb 14, 2021 · 6 comments
Closed

Loop Argument Deprecated #1182

pizzakid25 opened this issue Feb 14, 2021 · 6 comments

Comments

@pizzakid25
Copy link

Describe the bug
Everything is working as it should. However, it appears that some of the Alexapy code needs to be updated before Home Assistant begins to use version 3.10 of Python later this year in October/November.

To Reproduce
View the core logs in supervisor.

Expected behavior
N/A

Screenshots
None

System details

  • Home-assistant (version): 2021.2.3
  • Hassio (Yes/No): Yes
  • alexa_media (version from const.py or HA startup): 3.8.0
  • alexapy (version from pip show alexapy or HA startup): 1.24.0
  • Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: No

Logs

/usr/local/lib/python3.8/site-packages/alexapy/aiohttp/connector.py:999: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  hosts = await asyncio.shield(
/usr/local/lib/python3.8/site-packages/alexapy/aiohttp/locks.py:22: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._event = asyncio.Event(loop=loop)

Additional context
None

@larena1
Copy link

larena1 commented Feb 15, 2021

https://gitlab.com/keatontaylor/alexapy/-/tree/dev/alexapy/aiohttp

Something went wrong there. There's a folder with the new aiohttp version inside of the actual aiohttp folder.

And is it really necessary for alexapy to ship its own version of aiohttp?

@alandtse
Copy link
Owner

No that's right. We ship a patched version because the cookie handling is broken in aiohttp. aio-libs/aiohttp#4486

@larena1
Copy link

larena1 commented Feb 15, 2021

Are you sure that's right? Because you're still using the version with deprecations

https://gitlab.com/keatontaylor/alexapy/-/blob/dev/alexapy/aiohttp/connector.py#L999

@alandtse
Copy link
Owner

Odd, aiohttp said they fixed it in master and I pulled from master. Feel free to hunt down which rev I should be pulling down and I'll update it.

Otherwise, this is low priority for me.

@alandtse alandtse reopened this Feb 15, 2021
@alandtse
Copy link
Owner

Oh. Odd, the build script didn't copy the updated version in.

@larena1
Copy link

larena1 commented Feb 15, 2021

It did.

https://gitlab.com/keatontaylor/alexapy/-/tree/dev/alexapy/aiohttp/aiohttp

That's what I was referring to in my post before ;)

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

3 participants