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
Hi,
I have installed the RethinkDB python driver using pip install rethinkdb and its working perfectly well.
But when I connecting with asyncio using r.set_loop_type('asyncio'), it throws an error module 'asyncio' has no attribute 'coroutine'.
My python version is 3.11
To Reproduce
Steps to reproduce the behavior:
I installed with pip install rethinkdb and the installed version in 2.4.9
System info
OS: [OpenSUSE Tumbleweed]
RethinkDB Version: [e.g. 2.4.9]
Additional context
As a personal experiment I remove all the @asyncio.coroutine and added async in front of the reletive def and replaced yeild from to await on the file rethinkdb/asyncio_net/net_asyncio.py
As the coroutine bug is possibly fixed by the above changes I get a new error as follows
File "/home/phenom-02/.local/share/virtualenvs/PhenomAuth2-s29yQfHp/lib/python3.11/site-packages/rethinkdb/ast.py", line 154, in run
return c._start(self, **global_optargs)
^^^^^^^^
AttributeError: 'coroutine' object has no attribute '_start'```
The text was updated successfully, but these errors were encountered:
As the coroutine bug is possibly fixed by the above changes I get a new error as follows
Could that be a bug in your own code? _start is supposed to be called on a connection, so maybe you need an await in your code. (I'm not familiar with Python async at all, so I'm shooting in the dark.)
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have installed the RethinkDB python driver using
pip install rethinkdb
and its working perfectly well.But when I connecting with asyncio using
r.set_loop_type('asyncio')
, it throws an errormodule 'asyncio' has no attribute 'coroutine'
.My python version is 3.11
To Reproduce
Steps to reproduce the behavior:
I installed with
pip install rethinkdb
and the installed version in 2.4.9System info
Additional context
As a personal experiment I remove all the
@asyncio.coroutine
and addedasync
in front of the reletivedef
and replacedyeild from
toawait
on the file rethinkdb/asyncio_net/net_asyncio.pyAs the coroutine bug is possibly fixed by the above changes I get a new error as follows
The text was updated successfully, but these errors were encountered: