Skip to content

net_asyncio Connection,.... #125

@dpineiden

Description

@dpineiden

Hi!

I'm using with asyncio rethinkdb and on the last version (2.4.2) i hav this problem

Describe the bug

    conn = await rc.async_connect()
  File "/home/david/Proyectos/DataDBS/datadbs/rethinkdb.py", line 72, in async_connect
    raise ex
  File "/home/david/Proyectos/DataDBS/datadbs/rethinkdb.py", line 62, in async_connect
    host=dbhost, **kwargs)
  File "/home/david/.virtualenvs/aguita37/lib/python3.7/site-packages/rethinkdb/__init__.py", line 96, in connect
    return self.make_connection(self.connection_type, *args, **kwargs)
  File "/home/david/.virtualenvs/aguita37/lib/python3.7/site-packages/rethinkdb/net.py", line 751, in make_connection
    **kwargs)
  File "/home/david/.virtualenvs/aguita37/lib/python3.7/site-packages/rethinkdb/asyncio_net/net_asyncio.py", line 333, in __init__
    super(Connection, self).__init__(ConnectionInstance, *args, **kwargs)
TypeError: super(type, obj): obj must be an instance or subtype of type

During handling of the above exception, another exception occurred:

I solved, in a while, with these changes:

On net_asyncio.py, line 333:
super().init(ConnectionInstance, *args, **kwargs)

To Reproduce
Steps to reproduce the behavior:

  1. Create a new connection with await....
    Using this module:
    https://gitlab.com/pineiden/datadbs
    Method: async_connect

Expected behavior
Connect like before

System info

  • Debian 9
  • RethinkDB Version: [2.4.0]
  • Python client version: 3.7

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions