You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bootstrap
venv/lib/python3.11/site-packages/aiobtdht/dht.py:245: RuntimeWarning: coroutine 'DHT.remote_find_node' was never awaited
await asyncio.gather(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Task exception was never retrieved
future: <Task finished name='Task-4' coro=<run_every() done, defined at venv/lib/python3.11/site-packages/aiobtdht/utils.py:59> exception=TypeError("gather() got an unexpected keyword argument 'loop'")>
Traceback (most recent call last):
File "venv/lib/python3.11/site-packages/aiobtdht/utils.py", line 64, in run_every
await r
File "venv/lib/python3.11/site-packages/aiobtdht/dht.py", line 214, in _refresh_nodes
await asyncio.gather(
^^^^^^^^^^^^^^^
TypeError: gather() got an unexpected keyword argument 'loop'
Traceback (most recent call last):
File "sample.py", line 41, in <module>
loop.run_until_complete(main(loop))
File "/run/current-system/sw/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "sample.py", line 19, in main
await dht.bootstrap(initial_nodes)
File "venv/lib/python3.11/site-packages/aiobtdht/dht.py", line 290, in bootstrap
responses = await self._group_invoke(lambda peer: self.remote_find_node(peer, self.id), peers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/aiobtdht/dht.py", line 245, in _group_invoke
await asyncio.gather(
^^^^^^^^^^^^^^^
TypeError: gather() got an unexpected keyword argument 'loop'
python 3.11.6, installed via pip in venv
The text was updated successfully, but these errors were encountered:
Hi, the reason why your code does not work is most likely that you are using the pip release which is a few years old and does not have the newest bug fixes from the repo. (this is also true for aiokrpc, one of the dependencies of aiobtdht)
A simple way to mitigate this issue is to tell pip to install the newest version from GitHub and not the official pip package.
In the meanwhile we could kindly ask @mweinelt or @bashkirtsevich to trigger a new release on pypy for this package as well as for aiokrpc, would this be possible?
Please let me know if i can help somehow with this process!
python 3.11.6, installed via pip in venv
The text was updated successfully, but these errors were encountered: