[Python] TypeError: string indices must be integers on ArangoDB

Discussão em 'Python' iniciado por Stack, Junho 23, 2025.

  1. Stack

    Stack Membro Participativo

    Arango module gives a weird error while accessing databases:

    from arango import ArangoClient
    client = ArangoClient(hosts='http://localhost:8529/')
    sys_db = client.db('_system', username='root', password='root')
    sys_db.databases()


    below is the error:


    Traceback (most recent call last): File "", line 1, in File "/home/ubuntu/arangovenv/lib/python3.6/site-packages/arango/database.py", line 699, in databases return self._execute(request, response_handler) File "/home/ubuntu/arangovenv/lib/python3.6/site-packages/arango/api.py", line 66, in _execute return self._executor.execute(request, response_handler) File "/home/ubuntu/arangovenv/lib/python3.6/site-packages/arango/executor.py", line 82, in execute return response_handler(resp) File "/home/ubuntu/arangovenv/lib/python3.6/site-packages/arango/database.py", line 697, in response_handler return resp.body['result'] TypeError: string indices must be integers
    ​

    calling database module from "packages/arango/database.py" giving me the same error.

    my env:

    1) ubuntu 16.4

    2) python-arango==5.2.1

    any help appreciated.

    Continue reading...

Compartilhe esta Página