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

Python 3.10: wait_for() got an unexpected keyword argument 'loop' #3736

Open
1 task
drzraf opened this issue Nov 15, 2023 · 0 comments
Open
1 task

Python 3.10: wait_for() got an unexpected keyword argument 'loop' #3736

drzraf opened this issue Nov 15, 2023 · 0 comments

Comments

@drzraf
Copy link

drzraf commented Nov 15, 2023

On Python 3.10

NB: I add to switch to latest 'cffi==1.15.1' to complete the pip installation with 3.10
NB: INSTALL file mentions a Python<3.8 restriction due to #2769 which was actually assumed solved (as the latest comments indicate).

2023-11-15 00:09:58,173 WARNING  lbry.extras.daemon.components:563: upnp discovery failed: wait_for() got an unexpected keyword argument 'loop'
2023-11-15 00:09:58,173 ERROR    lbry.extras.daemon.components:654: failed to setup upnp
Task exception was never retrieved
future: <Task finished name='Task-14' coro=<Gateway._discover_gateway() done, defined at /lbrydseed/lbry-sdk/lbry-venv/lib/python3.10/site-packages/aioupnp/gateway.py:197> exception=UPnPError(TypeError('As of 3.10, the *loop* parameter was removed from Event() since it is no longer necessary'))>
Traceback (most recent call last):
  File "/lbrydseed/lbry-sdk/lbry-venv/lib/python3.10/site-packages/aioupnp/protocols/ssdp.py", line 141, in listen_ssdp
    listen_result: Tuple[asyncio.BaseTransport, asyncio.BaseProtocol] = await loop.create_datagram_endpoint(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1387, in create_datagram_endpoint
    protocol = protocol_factory()
  File "/lbrydseed/lbry-sdk/lbry-venv/lib/python3.10/site-packages/aioupnp/protocols/ssdp.py", line 142, in <lambda>
    lambda: SSDPProtocol(SSDP_IP_ADDRESS, lan_address), sock=sock
  File "/lbrydseed/lbry-sdk/lbry-venv/lib/python3.10/site-packages/aioupnp/protocols/ssdp.py", line 34, in __init__
    self.connected = asyncio.Event(loop=self.loop)
  File "/usr/lib/python3.10/asyncio/locks.py", line 168, in __init__
    super().__init__(loop=loop)
  File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
    raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Event() since it is no longer necessary

Other Python 3.10 limitations:

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