I am trying to setup rethinkDB with tornado. This is my db setup -
db_connection = r.connect(RDB_HOST,RDB_PORT) #Connecting to RethinkDB server
This is just for cross-checking database and table exists
def dbSetup():
print PROJECT_DB,db_connection
try:
r.db_create(PROJECT_DB).run(db_connection)
print 'Database setup completed.'
except RqlRuntimeError:
try:
r.db(PROJECT_DB).table_create(PROJECT_TABLE).run(connection)
print 'Table creation completed'
except:
print 'Table already exists.Nothing to do'
print 'App database already exists.Nothing to do'
db_connection.close()
But the try block for db_create is throwing an AttributeError: 'Future' object has no attribute '_start'. I am unable to figure out what seems to be the problem here.