I need to call auto_increment function in Tarantool 1.6 using python client.
I have tried without success:
database = tarantool.connect("localhost", 3301)
s = database.space("customer")
s.call('auto_increment','foo')
Could someone clarify how to insert a new record with 'foo' as field using auto_increment in python?
I include the error message, I tried several ways to use auto_increment in Python without success.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nameko/containers.py", line 388, in _run_worker
result = method(*worker_ctx.args, **worker_ctx.kwargs)
File "./service.py", line 25, in create
self.server.call('box.auto_increment', (0, 'foo'))
File "/usr/local/lib/python2.7/dist-packages/tarantool/connection.py", line 373, in call
response = self._send_request(request)
File "/usr/local/lib/python2.7/dist-packages/tarantool/connection.py", line 341, in _send_request
return self._send_request_wo_reconnect(request)
File "/usr/local/lib/python2.7/dist-packages/tarantool/connection.py", line 261, in _send_request_wo_reconnect
response = Response(self, self._read_response())
File "/usr/local/lib/python2.7/dist-packages/tarantool/response.py", line 87, in __init__
raise DatabaseError(self._return_code, self._return_message)
DatabaseError: (48, 'Unknown request type 10')