Код: Выделить всё
from arango import ArangoClient
client = ArangoClient(hosts='http://localhost:8529/')
sys_db = client.db('_system', username='root', password='root')
sys_db.databases()
traceback (самый последний вызов последним): файл ", строка 1, в
file
" /home/ubuntu/arangovenv/lib/python3.6/site-package/ArAsebraSe.> 699, в базах данных
return self._execute (запрос, response_handler) файл "/home/ubuntu/arangovenv/lib/python3.6/site-packages/arango/api.py",
line 66, в _execute
return self._executor.execut "/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 < /p>
2) python-arango == 5.2.1 < /p>
Любая справка оценена. < /p>
Подробнее здесь: https://stackoverflow.com/questions/594 ... n-arangodb